summaryrefslogtreecommitdiffstats
path: root/include/crypto/aes_platform.h
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-08-10 09:00:22 +0200
committerTomas Mraz <tomas@openssl.org>2021-08-11 10:08:57 +0200
commitc96670e59a702de71d572958ff60fda5f78637c2 (patch)
treeb2f6bb753dacba31d9863130d77a45886fe1ba11 /include/crypto/aes_platform.h
parentb4f1b7b65871de8f44228e77fc9ab2ac8b6d7918 (diff)
aes_v8_xts_encrypt is present only on 64bit arm builds
Fixes #16273 Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16275)
Diffstat (limited to 'include/crypto/aes_platform.h')
-rw-r--r--include/crypto/aes_platform.h2
1 files changed, 1 insertions, 1 deletions
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