Make EVP_CIPHER_CTX opaque and renew the creator / destructor functions
authorRichard Levitte <levitte@openssl.org>
Sun, 13 Dec 2015 15:03:02 +0000 (16:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 12 Jan 2016 12:52:22 +0000 (13:52 +0100)
commit8baf9968dfd8ef2bc20cf2bf3de09304eb2213c5
tree2035740aa74629fb0d7fe7a3abd2c7d520ad081d
parentbd4850df648bee9d8e0595b7e1147266e6f55a3e
Make EVP_CIPHER_CTX opaque and renew the creator / destructor functions

Following the method used for EVP_MD_CTX and HMAC_CTX,
EVP_CIPHER_CTX_init and EVP_CIPHER_CTX_cleanup are joined together
into one function, EVP_CIPHER_CTX_reset, with EVP_CIPHER_CTX_init kept
as an alias.
EVP_CIPHER_CTX_cleanup fills no purpose of its own any more and is
therefore removed.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/evp/evp_enc.c
crypto/evp/evp_locl.h
include/openssl/evp.h