[][src]Type Definition esp_idf_bindgen::esp_sha1_prf_t

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>;

@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).