]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix partial block encryption in cfb and ofb for s390x
authorHolger Dengler <dengler@linux.ibm.com>
Thu, 4 Jan 2024 08:37:39 +0000 (09:37 +0100)
committerHolger Dengler <dengler@linux.ibm.com>
Thu, 4 Jan 2024 10:40:43 +0000 (11:40 +0100)
commit4df92c1a14c3c10b7010705d707613eb0b90df3c
treedc8e0fe60b3c4baeb11f40bba4379a463b842f7d
parent8b9cf1bc2c3085b6e9493a057209ffd0bddf48a6
Fix partial block encryption in cfb and ofb for s390x

Use the number of processed bytes information (num) from the generic
cipher context for the partial block handling in cfb and ofb, instead
of keep this information in the s390x-specific part of the cipher
context. The information in the generic context is reset properly,
even if the context is re-initialized without resetting the key or iv.

Fixes: #23175
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
providers/implementations/ciphers/cipher_aes.h
providers/implementations/ciphers/cipher_aes_hw_s390x.inc