diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:30:29 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:30:29 +0000 |
commit | 8741810d9919dacc8326efc0b14882a35c8be165 (patch) | |
tree | 31ce9c61e36b3e393e85e9e62b04b825372d64ce /lib | |
parent | 779e3579b6ab6b203d6d35095d0ed7e03fd7c36d (diff) |
OPENSSL_cleanse() -> explicit_bzero()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/kdf/tls1_prf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/kdf/tls1_prf.c b/lib/libcrypto/kdf/tls1_prf.c index d08c32d270a..dae42b684f9 100644 --- a/lib/libcrypto/kdf/tls1_prf.c +++ b/lib/libcrypto/kdf/tls1_prf.c @@ -50,7 +50,7 @@ static void pkey_tls1_prf_cleanup(EVP_PKEY_CTX *ctx) { TLS1_PRF_PKEY_CTX *kctx = ctx->data; freezero(kctx->sec, kctx->seclen); - OPENSSL_cleanse(kctx->seed, kctx->seedlen); + explicit_bzero(kctx->seed, kctx->seedlen); OPENSSL_free(kctx); } @@ -67,7 +67,7 @@ static int pkey_tls1_prf_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) return 0; if (kctx->sec != NULL) freezero(kctx->sec, kctx->seclen); - OPENSSL_cleanse(kctx->seed, kctx->seedlen); + explicit_bzero(kctx->seed, kctx->seedlen); kctx->seedlen = 0; kctx->sec = OPENSSL_memdup(p2, p1); if (kctx->sec == NULL) @@ -240,7 +240,7 @@ static int tls1_prf_P_hash(const EVP_MD *md, EVP_MD_CTX_free(ctx); EVP_MD_CTX_free(ctx_tmp); EVP_MD_CTX_free(ctx_init); - OPENSSL_cleanse(A1, sizeof(A1)); + explicit_bzero(A1, sizeof(A1)); return ret; } |