]> git.ipfire.org Git - thirdparty/openssl.git/commit
Test EVP Cipher updating the context's IV
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 11 Aug 2021 11:04:52 +0000 (13:04 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 16 Aug 2021 11:02:51 +0000 (13:02 +0200)
commitf17e52778f1f7b2703de73e488e7f9229c11dce4
treea07dad91007dc7f4201c0af007a60267ab0c47aa
parentc719ea171ce16a919014e5ca2f5217ae35219bdd
Test EVP Cipher updating the context's IV

Ensure that an EVP_CipherUpdate operation updates the context's
IV for AES CBC, CFB, OFB, and CTR. An application can get the
updated IV via EVP_CIPHER_CTX_iv().

The s390x implementation of the CFB and OFB ciphers in e_aes.c did not
update the IV in the context, but only within its s390x specific
context data.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16291)
test/evp_extra_test.c