mbedtls_md_hmac() function
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).
Arguments
md_info
The information structure of the message-digest algorithm to use.
keylen
The length of the HMAC secret key in Bytes.
input
The buffer holding the input data.
ilen
The length of the input data.
output
The generic HMAC result.
Return value
\c 0 on success. #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.