diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:30:45 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:30:45 +0000 |
commit | 43d601641f3476962c580c3b0490874a6e79d260 (patch) | |
tree | c9b4b7cc1f30dfdb419930e45aabf8a46e43a460 /crypto/evp/evp_enc.c | |
parent | 55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (diff) |
A few more memset()s converted to OPENSSL_cleanse().
I *think* I got them all covered by now, bu please, if you find any more,
tell me and I'll correct it.
PR: 343
Diffstat (limited to 'crypto/evp/evp_enc.c')
-rw-r--r-- | crypto/evp/evp_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c index 39a66f189f..66c48d1431 100644 --- a/crypto/evp/evp_enc.c +++ b/crypto/evp/evp_enc.c @@ -454,9 +454,9 @@ int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) { if(c->cipher->cleanup && !c->cipher->cleanup(c)) return 0; - /* Zero cipher context data */ + /* Cleanse cipher context data */ if (c->cipher_data) - memset(c->cipher_data, 0, c->cipher->ctx_size); + OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); } if (c->cipher_data) OPENSSL_free(c->cipher_data); |