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

mbedtls_md_init_ctx() function

This function selects the message digest algorithm to use, and allocates internal structures. It should be called after mbedtls_md_init() or mbedtls_md_free(). Makes it necessary to call mbedtls_md_free() later. \deprecated Superseded by mbedtls_md_setup() in 2.0.0

Syntax

int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx,     const mbedtls_md_info_t *md_info );
Implemented in md.c:216

Arguments

ctx

The context to set up.

md_info

The information structure of the message-digest algorithm to use.

Return value

\c 0 on success. #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure. #MBEDTLS_ERR_MD_ALLOC_FAILED on memory-allocation failure.

References

LocationText
md.c:216
int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info )
md.h:179

Call Tree

Functions called by mbedtls_md_init_ctx()
mbedtls_md_init_ctx()
all items filtered out
Data read by mbedtls_md_init_ctx()
mbedtls_md_init_ctx()