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.
This implementation in e_aes.c now matches the code in cipher_aes_hw_s390x.inc
that is used for the provider implementation.
Signed-off-by: Ingo Franzki <email@example.com>
Reviewed-by: Patrick Steuer <firstname.lastname@example.org>
Reviewed-by: Tomas Mraz <email@example.com>
(Merged from https://github.com/openssl/openssl/pull/16291)