Rename EVP_CIPHER_CTX_get_iv and EVP_CIPHER_CTX_get_iv_state for clarity
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 14 Jan 2021 14:19:46 +0000 (15:19 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 18 Jan 2021 13:27:44 +0000 (14:27 +0100)
commit0d83b7b9036feea680ba45751df028ff5e86cd63
tree69bb5df9b0f0d294ab46f1dd324279c43672553b
parent3aff5b4bac7186fda9208a76127eff040cafae13
Rename EVP_CIPHER_CTX_get_iv and EVP_CIPHER_CTX_get_iv_state for clarity

To clarify the purpose of these two calls rename them to
EVP_CIPHER_CTX_get_original_iv and EVP_CIPHER_CTX_get_updated_iv.

Also rename the OSSL_CIPHER_PARAM_IV_STATE to OSSL_CIPHER_PARAM_UPDATED_IV
to better align with the function name.

Fixes #13411

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13870)
16 files changed:
crypto/evp/evp_lib.c
doc/man3/EVP_CIPHER_CTX_get_original_iv.pod [moved from doc/man3/EVP_CIPHER_CTX_get_iv.pod with 52% similarity]
doc/man7/provider-cipher.pod
include/openssl/core_names.h
include/openssl/evp.h
providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
providers/implementations/ciphers/cipher_aes_ocb.c
providers/implementations/ciphers/ciphercommon.c
providers/implementations/ciphers/ciphercommon_ccm.c
providers/implementations/ciphers/ciphercommon_gcm.c
providers/implementations/include/prov/ciphercommon.h
ssl/ktls.c
test/aesgcmtest.c
test/evp_extra_test.c
test/evp_test.c
util/libcrypto.num