Type Alias esp_idf_sys::esp_sha256_prf_t

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

@brief The SHA256 PRF callback function used by esp_wifi.

@param key Key for PRF. @param key_len Length of the key in bytes. @param label A unique label for each purpose of the PRF. @param data Extra data to bind into the key. @param data_len Length of the data. @param buf Buffer for the generated pseudo-random key. @param buf_len Number of bytes of key to generate.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.