Type Alias esp_idf_sys::esp_sha1_prf_t

source ·
pub type esp_sha1_prf_t = Option<unsafe extern "C" fn(key: *const c_uchar, key_len: c_uint, label: *const c_char, data: *const c_uchar, data_len: c_uint, buf: *mut c_uchar, buf_len: c_uint) -> c_int>;
Expand description

@brief SHA1-based Pseudo-Random Function (PRF) (IEEE 802.11i, 8.5.1.1)

@key: Key for PRF @key_len: Length of the key in bytes @label: A unique label for each purpose of the PRF @data: Extra data to bind into the key @data_len: Length of the data @buf: Buffer for the generated pseudo-random key @buf_len: Number of bytes of key to generate Returns: 0 on success, -1 of failure

This function is used to derive new, cryptographically separate keys from a given key (e.g., PMK in IEEE 802.11i).

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.