diff options
Diffstat (limited to 'providers/implementations/kdfs/x942kdf.c')
-rw-r--r-- | providers/implementations/kdfs/x942kdf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/providers/implementations/kdfs/x942kdf.c b/providers/implementations/kdfs/x942kdf.c index 6def5d218d..be141c0d88 100644 --- a/providers/implementations/kdfs/x942kdf.c +++ b/providers/implementations/kdfs/x942kdf.c @@ -255,11 +255,13 @@ static void *x942kdf_new(void *provctx) static void x942kdf_reset(void *vctx) { KDF_X942 *ctx = (KDF_X942 *)vctx; + void *provctx = ctx->provctx; ossl_prov_digest_reset(&ctx->digest); OPENSSL_clear_free(ctx->secret, ctx->secret_len); OPENSSL_clear_free(ctx->ukm, ctx->ukm_len); memset(ctx, 0, sizeof(*ctx)); + ctx->provctx = provctx; } static void x942kdf_free(void *vctx) |