Test EVP Cipher updating the context's IV
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 11 Aug 2021 10:53:09 +0000 (12:53 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 16 Aug 2021 10:59:31 +0000 (12:59 +0200)
commitbc8c36272067f8443f875164831ce3a5a739df3f
treed607f16199568c499facb7dd2b4bcc1c7acc1fd3
parent32f7f60ccae59c7027010ec0b54c118ade087a41
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 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/16292)
test/evp_extra_test.c