Add accessors and writers for EVP_CIPHER_CTX
authorRichard Levitte <levitte@openssl.org>
Sun, 13 Dec 2015 20:25:42 +0000 (21:25 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 12 Jan 2016 12:52:22 +0000 (13:52 +0100)
commit83b06347023a573433b6aa23c8042f89df869f9e
treea22c63579d6c943b6de21642806c1d43a7ac7b36
parent8baf9968dfd8ef2bc20cf2bf3de09304eb2213c5
Add accessors and writers for EVP_CIPHER_CTX

New functions:

- EVP_CIPHER_CTX_encrypting()
- EVP_CIPHER_CTX_iv()
- EVP_CIPHER_CTX_iv_noconst()
- EVP_CIPHER_CTX_original_iv()
- EVP_CIPHER_CTX_buf_noconst()
- EVP_CIPHER_CTX_num()
- EVP_CIPHER_CTX_set_num()
- EVP_CIPHER_CTX_cipher_data()
- EVP_CIPHER_CTX_new_cipher_data()

Note that the accessors / writers for iv, buf and num may go away, as
those rather belong in the implementation's own structure (cipher_data)
when the implementation would affect them (that would be the case when
they are flagged EVP_CIPH_CUSTOM_IV or EVP_CIPH_FLAG_CUSTOM_CIPHER).

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