Type Alias esp_idf_sys::esp_pbkdf2_sha1_t

source ·
pub type esp_pbkdf2_sha1_t = Option<unsafe extern "C" fn(passphrase: *const c_char, ssid: *const c_char, ssid_len: c_uint, iterations: c_int, buf: *mut c_uchar, buflen: c_uint) -> c_int>;
Expand description

@brief SHA1-based key derivation function (PBKDF2) callback function for IEEE 802.11i

@param passphrase ASCII passphrase @param ssid SSID @param ssid_len SSID length in bytes @param iterations Number of iterations to run @param buf Buffer for the generated key @param buflen Length of the buffer in bytes Returns: 0 on success, -1 of failure

This function is used to derive PSK for WPA-PSK. For this protocol, iterations is set to 4096 and buflen to 32. This function is described in IEEE Std 802.11-2004, Clause H.4. The main construction is from PKCS#5 v2.0.

Aliased Type§

enum esp_pbkdf2_sha1_t {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: u32, _: i32, _: *mut u8, _: u32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: u32, _: i32, _: *mut u8, _: u32) -> i32)

Some value of type T.