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

mbedtls_md_hmac_finish() function

This function finishes the HMAC operation, and writes the result to the output buffer. Call this function after mbedtls_md_hmac_starts() and mbedtls_md_hmac_update() to get the HMAC value. Afterwards you may either call mbedtls_md_free() to clear the context, or call mbedtls_md_hmac_reset() to reuse the context with the same HMAC key.

Syntax

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

Arguments

ctx

The message digest context containing an embedded HMAC context.

output

The generic HMAC checksum result.

Return value

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

References

LocationReferrerText
md.c:374
int mbedtls_md_hmac_finish( mbedtls_md_context_t *ctx, unsigned char *output )
md.h:416
int mbedtls_md_hmac_finish( mbedtls_md_context_t *ctx, unsigned char *output);
md.c:434mbedtls_md_hmac()
if( ( ret = mbedtls_md_hmac_finish( &ctx, output ) ) != 0 )
ssl_tls.c:531tls_prf_generic()
mbedtls_md_hmac_finish( &md_ctx, tmp );
ssl_tls.c:537tls_prf_generic()
mbedtls_md_hmac_finish( &md_ctx, h_i );
ssl_tls.c:541tls_prf_generic()
mbedtls_md_hmac_finish( &md_ctx, tmp );

Call Tree

Functions calling mbedtls_md_hmac_finish()
Functions called by mbedtls_md_hmac_finish()
mbedtls_md_hmac_finish()
Data read by mbedtls_md_hmac_finish()
Data written by mbedtls_md_hmac_finish()
mbedtls_md_hmac_finish()
mbedtls_md_hmac_finish()::ret
mbedtls_md_hmac_finish()::opad
all items filtered out