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

mbedtls_md_hmac_update() function

This function feeds an input buffer into an ongoing HMAC computation. Call mbedtls_md_hmac_starts() or mbedtls_md_hmac_reset() before calling this function. You may call this function multiple times to pass the input piecewise. Afterwards, call mbedtls_md_hmac_finish().

Syntax

int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx,     const unsigned char *input,     size_t ilen );
Implemented in md.c:366

Arguments

ctx

The message digest context containing an embedded HMAC context.

input

The buffer holding the input data.

ilen

The length of the input data.

Return value

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

References

LocationReferrerText
md.c:366
int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen )
md.h:395
int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx, const unsigned char *input,
md.c:432mbedtls_md_hmac()
if( ( ret = mbedtls_md_hmac_update( &ctx, input, ilen ) ) != 0 )
ssl_tls.c:530tls_prf_generic()
mbedtls_md_hmac_update( &md_ctx, tmp + md_len, nb );
ssl_tls.c:536tls_prf_generic()
mbedtls_md_hmac_update( &md_ctx, tmp, md_len + nb );
ssl_tls.c:540tls_prf_generic()
mbedtls_md_hmac_update( &md_ctx, tmp, md_len );

Call Tree

Functions calling mbedtls_md_hmac_update()
Functions called by mbedtls_md_hmac_update()
mbedtls_md_hmac_update()
all items filtered out