Skip to content
Commit 580139bd authored by Rich Salz's avatar Rich Salz Committed by Rich Salz
Browse files

RT3841: memset() cipher_data when allocated



If an EVP implementation (such as an engine) fails out early, it's
possible to call EVP_CIPHER_CTX_cleanup() which will call
ctx->cipher->cleanup() before the cipher_data has been initialized
via ctx->cipher->init().  Guarantee it's all-bytes-zero as soon as
it is allocated.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
parent c490a551
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment