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

mbedtls_md_finish() function

This function finishes the digest operation, and writes the result to the output buffer. Call this function after a call to mbedtls_md_starts(), followed by any number of calls to mbedtls_md_update(). Afterwards, you may either clear the context with mbedtls_md_free(), or call mbedtls_md_starts() to reuse the context for another digest operation with the same algorithm.

Syntax

int mbedtls_md_finish( mbedtls_md_context_t *ctx,     unsigned char *output );
Implemented in md.c:261

Arguments

ctx

The generic message-digest context.

output

The buffer for 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:261
int mbedtls_md_finish( mbedtls_md_context_t *ctx, unsigned char *output )
md.h:310
int mbedtls_md_finish( mbedtls_md_context_t *ctx, unsigned char *output );
ssl_tls.c:9770mbedtls_ssl_get_key_exchange_md_tls1_2()
if( ( ret = mbedtls_md_finish( &ctx, hash ) ) != 0 )

Call Tree

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