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
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.
Functions called by mbedtls_md_init_ctx()
mbedtls_md_init_ctx()
Data read by mbedtls_md_init_ctx()
mbedtls_md_init_ctx()