Skip to content

Commit f690ef1

Browse files
committed
s390x assembly pack: fix various aes modes performance regression
which was introduced with 64adf9a. Signed-off-by: Patrick Steuer <[email protected]> Reviewed-by: Richard Levitte <[email protected]> Reviewed-by: Shane Lontis <[email protected]> (Merged from openssl#9271)
1 parent 6592ab8 commit f690ef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

providers/common/ciphers/aes_basic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ static const PROV_AES_CIPHER aes_##mode = { \
606606
}; \
607607
const PROV_AES_CIPHER *PROV_AES_CIPHER_##mode(size_t keylen) \
608608
{ \
609-
if ((keylen == 128 && S390X_aes_128_##mode##_CAPABLE) \
610-
|| (keylen == 192 && S390X_aes_192_##mode##_CAPABLE) \
611-
|| (keylen == 256 && S390X_aes_256_##mode##_CAPABLE)) \
609+
if ((keylen == 16 && S390X_aes_128_##mode##_CAPABLE) \
610+
|| (keylen == 24 && S390X_aes_192_##mode##_CAPABLE) \
611+
|| (keylen == 32 && S390X_aes_256_##mode##_CAPABLE)) \
612612
return &s390x_aes_##mode; \
613613
\
614614
return &aes_##mode; \

0 commit comments

Comments
 (0)