Function bearssl::br_hmac_out [] [src]

pub unsafe extern "C" fn br_hmac_out(
    ctx: *const br_hmac_context,
    out: *mut c_void
) -> usize

\brief Compute the HMAC output.

The destination buffer MUST be large enough to accomodate the result; its length is at most the "natural length" of HMAC (i.e. the output length of the underlying hash function). The context is NOT modified; further bytes may be processed. Thus, "partial HMAC" values can be efficiently obtained.

Returned value is the output length (in bytes).

\param ctx HMAC computation context. \param out destination buffer for the HMAC output. \return the produced value length (in bytes).