s390x: AES OFB/CFB: Maintain running IV from cipher context
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 11 Aug 2021 07:39:46 +0000 (09:39 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 16 Aug 2021 10:59:31 +0000 (12:59 +0200)
commit32f7f60ccae59c7027010ec0b54c118ade087a41
treed6ca6eed9020b6af5a2a2fa98c101c3202be8075
parent75a4f263ba9d3ec1e9d55ca5024aee62aec70475
s390x: AES OFB/CFB: Maintain running IV from cipher context

Copy the current IV from the cipher context into the kmo/kmf param before
the operation, and copy the modified IV back to the context afterwards.
Without this, an application that obtains the running IV from the context
would still get the original IV, but not the updated one.

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)
crypto/evp/e_aes.c