diff options
-rw-r--r-- | src/lib/libcrypto/ecdh/ecdh_kdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
106 | if (!EVP_DigestFinal(mctx, mtmp, NULL)) | 106 | if (!EVP_DigestFinal(mctx, mtmp, NULL)) |
107 | goto err; | 107 | goto err; |
108 | memcpy(out, mtmp, outlen); | 108 | memcpy(out, mtmp, outlen); |
109 | OPENSSL_cleanse(mtmp, mdlen); | 109 | explicit_bzero(mtmp, mdlen); |
110 | break; | 110 | break; |
111 | } | 111 | } |
112 | } | 112 | } |