projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly zero cipher_data for ChaCha20-Poly1305 on cleanup
[openssl.git]
/
crypto
/
evp
/
e_chacha20_poly1305.c
diff --git
a/crypto/evp/e_chacha20_poly1305.c
b/crypto/evp/e_chacha20_poly1305.c
index 46bc2cb44fb323748685a4e5a09ef8c6b478259b..7fd4f8dfe7fd2b13b6a17a8a224d4d916b1d1b63 100644
(file)
--- a/
crypto/evp/e_chacha20_poly1305.c
+++ b/
crypto/evp/e_chacha20_poly1305.c
@@
-316,7
+316,7
@@
static int chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx)
{
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
if (actx)
- OPENSSL_cleanse(ctx->cipher_data, sizeof(*ctx) + Poly1305_ctx_size());
+ OPENSSL_cleanse(ctx->cipher_data, sizeof(*
a
ctx) + Poly1305_ctx_size());
return 1;
}