Type Alias esp_idf_sys::esp_hmac_sha1_vector_t

source ·
pub type esp_hmac_sha1_vector_t = Option<unsafe extern "C" fn(key: *const c_uchar, key_len: c_uint, num_elem: c_uint, addr: *mut *const c_uchar, len: *const c_uint, mac: *mut c_uchar) -> c_int>;
Expand description

@brief HMAC-SHA1 callback function over data vector (RFC 2104)

@param key Key for HMAC operations @param key_len Length of the key in bytes @param num_elem Number of elements in the data vector @param addr Pointers to the data areas @param len Lengths of the data blocks @param mac Buffer for the hash (20 bytes) Returns: 0 on success, -1 on failure

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.