pub unsafe extern "C" fn mbedtls_md_hmac(
    md_info: *const mbedtls_md_info_t,
    key: *const c_uchar,
    keylen: usize,
    input: *const c_uchar,
    ilen: usize,
    output: *mut c_uchar
) -> c_int
Expand description

\brief This function calculates the full generic HMAC on the input buffer with the provided key.

            The function allocates the context, performs the
            calculation, and frees the context.

            The HMAC result is calculated as
            output = generic HMAC(hmac key, input buffer).

\param md_info The information structure of the message-digest algorithm to use. \param key The HMAC secret key. \param keylen The length of the HMAC secret key in Bytes. \param input The buffer holding the input data. \param ilen The length of the input data. \param output The generic HMAC result.

\return \c 0 on success. \return #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.