Function bearssl::br_hmac_key_init [] [src]

pub unsafe extern "C" fn br_hmac_key_init(
    kc: *mut br_hmac_key_context,
    digest_vtable: *const br_hash_class,
    key: *const c_void,
    key_len: usize
)

\brief HMAC key context initialisation.

Initialise the key context with the provided key, using the hash function identified by digest_vtable. This supports arbitrary key lengths.

\param kc HMAC key context to initialise. \param digest_vtable pointer to the hash function implementation vtable. \param key pointer to the HMAC secret key. \param key_len HMAC secret key length (in bytes).