From db1d8c90d52a4f2be1afd9448368c012b8990f1e Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 27 Nov 2024 11:19:19 +1100 Subject: [PATCH] hkdf: change FIPS zeroization to use the OPENSSL_PEDANTIC_ZEROIZATION define Reviewed-by: Richard Levitte Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/26068) --- providers/implementations/kdfs/hkdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/implementations/kdfs/hkdf.c b/providers/implementations/kdfs/hkdf.c index 78fc3498b2..264bc5d4c1 100644 --- a/providers/implementations/kdfs/hkdf.c +++ b/providers/implementations/kdfs/hkdf.c @@ -128,7 +128,7 @@ static void kdf_hkdf_reset(void *vctx) void *provctx = ctx->provctx; ossl_prov_digest_reset(&ctx->digest); -#ifdef FIPS_MODULE +#ifdef OPENSSL_PEDANTIC_ZEROIZATION OPENSSL_clear_free(ctx->salt, ctx->salt_len); #else OPENSSL_free(ctx->salt);