From 4be62f72d4755d91da1c0d369831f10bbea5e459 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 5 Sep 2019 16:15:39 +0000 Subject: Replace OPENSSL_cleanse() with explicit_bzero(). --- src/lib/libcrypto/ecdh/ecdh_kdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/libcrypto/ecdh/ecdh_kdf.c b/src/lib/libcrypto/ecdh/ecdh_kdf.c index 5d2de74052..25398626e2 100644 --- a/src/lib/libcrypto/ecdh/ecdh_kdf.c +++ b/src/lib/libcrypto/ecdh/ecdh_kdf.c @@ -106,7 +106,7 @@ ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const unsigned char *Z, if (!EVP_DigestFinal(mctx, mtmp, NULL)) goto err; memcpy(out, mtmp, outlen); - OPENSSL_cleanse(mtmp, mdlen); + explicit_bzero(mtmp, mdlen); break; } } -- cgit v1.2.3-55-g6feb