[][src]Type Definition esp_idf_bindgen::esp_ccmp_decrypt_t

type esp_ccmp_decrypt_t = Option<unsafe extern "C" fn(tk: *const u8, ieee80211_hdr: *const u8, data: *const u8, data_len: size_t, decrypted_len: *mut size_t) -> *mut u8>;

@brief Decrypt data using CCMP (Counter Mode CBC-MAC Protocol OR Counter Mode Cipher Block Chaining Message Authentication Code Protocol) which is used in IEEE 802.11i RSN standard. @tk: 128-bit Temporal Key for obtained during 4-way handshake @hdr: Pointer to IEEE802.11 frame headeri needed for AAD @data: Pointer to encrypted data buffer @data_len: Encrypted data length in bytes @decrypted_len: Length of decrypted data Returns: Pointer to decrypted data on success, NULL on failure