]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix cipher reinit on s390x if no key is specified
authorJuergen Christ <jchrist@linux.ibm.com>
Wed, 27 Jan 2021 10:04:52 +0000 (11:04 +0100)
committerPatrick Steuer <patrick.steuer@de.ibm.com>
Thu, 28 Jan 2021 14:23:25 +0000 (15:23 +0100)
commit732a4d15b0da7c04437ea828b2915a691b6e38db
tree2bcbf40050608124d6be4bf1f04951a56a2da27c
parent199df4a93f74617612abd9419ad6cf00d9c34bc3
Fix cipher reinit on s390x if no key is specified

If key==null on EVP_CipherInit_ex, the init functions for the hardware
implementation is not called.  The s390x implementation of OFB and CFB mode
used the init function to copy the IV into the hardware causing test failures
on cipher reinit.  Fix this by moving the copy operation into the cipher
operation.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
(Merged from https://github.com/openssl/openssl/pull/13984)
providers/implementations/ciphers/cipher_aes_hw_s390x.inc