Type Alias esp_idf_sys::esp_ccmp_decrypt_t

source ·
pub type esp_ccmp_decrypt_t = Option<unsafe extern "C" fn(tk: *const u8, ieee80211_hdr: *const u8, data: *const u8, data_len: usize, decrypted_len: *mut usize, espnow_pkt: bool) -> *mut u8>;
Expand description

@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 @espnow_pkt: Indicates if it’s an ESPNOW packet Returns: Pointer to decrypted data on success, NULL on failure

Aliased Type§

enum esp_ccmp_decrypt_t {
    None,
    Some(unsafe extern "C" fn(_: *const u8, _: *const u8, _: *const u8, _: usize, _: *mut usize, _: bool) -> *mut u8),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.