]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix CipherInit on s390x.
authorJuergen Christ <jchrist@linux.ibm.com>
Fri, 28 May 2021 13:02:52 +0000 (15:02 +0200)
committerPauli <pauli@openssl.org>
Tue, 8 Jun 2021 04:32:44 +0000 (14:32 +1000)
commitff555f81365d1c09a408019924cace4a0f457ef6
treec99b031f83fe6ee47d9f2d7e4bb0f86e41181c1d
parent6d2e0076e6a8146f3bdaa60151b2fa6e4df0d1bf
Fix CipherInit on s390x.

Various different initialization sequences led to bugs on s390x due to caching
and processing during key setting.  Since, e.g., the direction does not
necessarily have to be correct during initialization, this produced bugs in
s390x which were not present on other architectures.  Fix this by recomputing
the function codes on the fly during updates and final operations.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15521)
providers/implementations/ciphers/cipher_aes_gcm.h
providers/implementations/ciphers/cipher_aes_gcm_hw_s390x.inc
providers/implementations/ciphers/cipher_aes_hw_s390x.inc