{
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);
}
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)
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;
}