[PATCH] rijndael-s390x: fix AES256-XTS feature mask

Jussi Kivilinna jussi.kivilinna at iki.fi
Sun Feb 4 20:35:07 CET 2024


* cipher/rijndael-s390x.c (_gcry_aes_s390x_setup_acceleration): Fix
AES256-XTS feature mask.
--

Implementation was checking for plain AES256 HW-acceleration instead of
AES256-XTS mode acceleration.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/rijndael-s390x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/rijndael-s390x.c b/cipher/rijndael-s390x.c
index e50537ed..0a26020e 100644
--- a/cipher/rijndael-s390x.c
+++ b/cipher/rijndael-s390x.c
@@ -1058,7 +1058,7 @@ int _gcry_aes_s390x_setup_acceleration(RIJNDAEL_context *ctx,
       func = KM_FUNCTION_AES_256;
       func_xts = KM_FUNCTION_XTS_AES_256;
       func_mask = km_function_to_mask(KM_FUNCTION_AES_256);
-      func_xts_mask = km_function_to_mask(KM_FUNCTION_AES_256);
+      func_xts_mask = km_function_to_mask(KM_FUNCTION_XTS_AES_256);
       break;
     }
 
-- 
2.40.1




More information about the Gcrypt-devel mailing list