From: Tomas Mraz Date: Tue, 10 Aug 2021 07:00:22 +0000 (+0200) Subject: aes_v8_xts_encrypt is present only on 64bit arm builds X-Git-Tag: openssl-3.0.0~128 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=c96670e59a702de71d572958ff60fda5f78637c2 aes_v8_xts_encrypt is present only on 64bit arm builds Fixes #16273 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16275) --- diff --git a/include/crypto/aes_platform.h b/include/crypto/aes_platform.h index f1b1d62549..015c3bd4ab 100644 --- a/include/crypto/aes_platform.h +++ b/include/crypto/aes_platform.h @@ -92,7 +92,7 @@ void AES_xts_decrypt(const unsigned char *inp, unsigned char *out, size_t len, # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ecb_encrypt aes_v8_ecb_encrypt -# if __ARM_MAX_ARCH__>=8 +# if __ARM_MAX_ARCH__>=8 && defined(__aarch64__) # define HWAES_xts_encrypt aes_v8_xts_encrypt # define HWAES_xts_decrypt aes_v8_xts_decrypt # endif