Function esp_idf_svc::hal::sys::mbedtls_md_hmac
source ยท pub unsafe extern "C" fn mbedtls_md_hmac(
md_info: *const mbedtls_md_info_t,
key: *const u8,
keylen: usize,
input: *const u8,
ilen: usize,
output: *mut u8,
) -> i32
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.