pub type esp_pbkdf2_sha1_t = Option<unsafe extern "C" fn(_: *const i8, _: *const i8, _: u32, _: i32, _: *mut u8, _: u32) -> i32>;
Expand description

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

@passphrase: ASCII passphrase @ssid: SSID @ssid_len: SSID length in bytes @iterations: Number of iterations to run @buf: Buffer for the generated key @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.