7340N/A# It checks the validity of the context.
7340N/A# The issue was reported to the upstream by QE: #4679
7340N/A unsigned char pad[HMAC_MAX_MD_CBLOCK];
7340N/A+ /* If we are changing MD then we must have a key */
7340N/A+ if (md != NULL && md != ctx->md && (key == NULL || len < 0))
7340N/A /* If FIPS mode switch to approved implementation if possible */
7340N/A return FIPS_hmac_init_ex(ctx, key, len, md, NULL);
7340N/A- /* If we are changing MD then we must have a key */
7340N/A- if (md != NULL && md != ctx->md && (key == NULL || len < 0))
7340N/A int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len)
7340N/A return FIPS_hmac_update(ctx, data, len);
7340N/A return EVP_DigestUpdate(&ctx->md_ctx, data, len);
7340N/A unsigned char buf[EVP_MAX_MD_SIZE];
7340N/A return FIPS_hmac_final(ctx, md, len);
7340N/A if (!EVP_DigestFinal_ex(&ctx->md_ctx, buf, &i))
7340N/A if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->o_ctx))