Type Alias esp_idf_sys::esp_aes_gmac_t

source ·
pub type esp_aes_gmac_t = Option<unsafe extern "C" fn(key: *const u8, keylen: usize, iv: *const u8, iv_len: usize, aad: *const u8, aad_len: usize, mic: *mut u8) -> c_int>;
Expand description

@brief One-Key GMAC hash callback function with AES for MIC computation

@param key key for the hash operation @param keylen key length @param iv initialization vector @param iv_len initialization vector length @param aad aad @param aad_len aad length @param mic Buffer for MIC (128 bits, i.e., 16 bytes) Returns: 0 on success, -1 on failure

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.