mbedtls_md() function
This function calculates the message-digest of a buffer, with respect to a configurable message-digest algorithm in a single call. The result is calculated as Output = message_digest(input buffer).
Arguments
md_info
The information structure of the message-digest algorithm to use.
input
The buffer holding the data.
ilen
The length of the input data.
output
The generic message-digest checksum result.
Return value
\c 0 on success. #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.