mbedtls_md() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

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).

Syntax

int mbedtls_md( const mbedtls_md_info_t *md_info,     const unsigned char *input,     size_t ilen,     unsigned char *output );
Implemented in md.c:269

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.

References

LocationReferrerText
md.c:269
int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
md.h:330
int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
x509_crt.c:1898x509_crt_check_signature()
if( mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ) != 0 )

Call Tree

Functions calling mbedtls_md()
Functions called by mbedtls_md()
all items filtered out
mbedtls_md()
all items filtered out
Data read by mbedtls_md()
mbedtls_md()