* 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.kivili...@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gcrypt-devel

Reply via email to