Lines Matching refs:hmac_ctx
325 if (ctx->hmac_ctx != NULL) { in mbedtls_md_free()
326 mbedtls_zeroize_and_free(ctx->hmac_ctx, in mbedtls_md_free()
432 ctx->hmac_ctx = NULL; in mbedtls_md_setup()
498 ctx->hmac_ctx = mbedtls_calloc(2, md_info->block_size); in mbedtls_md_setup()
499 if (ctx->hmac_ctx == NULL) { in mbedtls_md_setup()
975 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_starts()
994 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts()
995 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
1019 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_update()
1032 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_finish()
1036 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish()
1060 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_reset()
1064 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_reset()