Lines Matching refs:hmac_ctx
194 if( ctx->hmac_ctx != NULL ) in mbedtls_md_free()
196 mbedtls_zeroize( ctx->hmac_ctx, 2 * ctx->md_info->block_size ); in mbedtls_md_free()
197 mbedtls_free( ctx->hmac_ctx ); in mbedtls_md_free()
235 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup()
236 if( ctx->hmac_ctx == NULL ) in mbedtls_md_setup()
336 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts()
349 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts()
350 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
371 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_update()
384 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_finish()
387 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish()
402 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_reset()
405 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_reset()