Remove unnecessary reference to EVP_MD_CTX in HMAC pkey method.
memcpy(out->md_data,in->md_data,out->digest->ctx_size);
}
+ out->update = in->update;
+
if (in->pctx)
{
out->pctx = EVP_PKEY_CTX_dup(in->pctx);
typedef struct
{
const EVP_MD *md; /* MD for HMAC use */
- EVP_MD_CTX *mctx; /* Parent EVP_MD_CTX */
ASN1_OCTET_STRING ktmp; /* Temp storage for key */
HMAC_CTX ctx;
} HMAC_PKEY_CTX;
if (!hctx)
return 0;
hctx->md = NULL;
- hctx->mctx = NULL;
hctx->ktmp.data = NULL;
HMAC_CTX_init(&hctx->ctx);
static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx)
{
- HMAC_PKEY_CTX *hctx = ctx->data;
- hctx->mctx = mctx;
EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT);
mctx->update = int_update;
return 1;