Fix partial block encryption in cfb and ofb for s390x (legacy)
authorHolger Dengler <dengler@linux.ibm.com>
Fri, 5 Jan 2024 13:16:53 +0000 (14:16 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Jan 2024 09:35:46 +0000 (10:35 +0100)
commitc944c06cc94e9a7a53f075543a0c0858919f96c5
tree3db94ef72549c5be24c80dc05f5e8df55d68ad0b
parentaa24651e5c535cd3cbab95a5cc93b18929972664
Fix partial block encryption in cfb and ofb for s390x (legacy)

Use the number of processed bytes information (num) from the generic
cipher context for the partial block handling in cfb and ofb also in
s390x-legacy code. For more details see 4df92c1a14 ("Fix partial block
encryption in cfb and ofb for s390x").

Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23201)

(cherry picked from commit f9ccd209c3d121668c51a992613c698f2a774cb3)
crypto/evp/e_aes.c