Type Alias esp_idf_sys::esp_ccmp_encrypt_t

source ·
pub type esp_ccmp_encrypt_t = Option<unsafe extern "C" fn(tk: *const u8, frame: *mut u8, len: usize, hdrlen: usize, pn: *mut u8, keyid: c_int, encrypted_len: *mut usize) -> *mut u8>;
Expand description

@brief Encrypt data callback function 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. @param tk 128-bit Temporal Key for obtained during 4-way handshake @param frame Pointer to IEEE802.11 frame including header @param len Length of the frame including header @param hdrlen Length of the header @param pn Packet Number counter @param keyid Key ID to be mentioned in CCMP Vector @param encrypted_len Length of the encrypted frame including header

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.