diff --git a/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c b/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c index 8f2adf8c88..825de8a1c8 100644 --- a/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c +++ b/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c @@ -20,9 +20,12 @@ #ifdef __clang__ #pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) #elif defined(__GNUC__) -#pragma GCC target("neon,crypto,aes") +#pragma GCC target("+simd+crypto") #endif +#ifndef __ARM_FEATURE_CRYPTO +#define __ARM_FEATURE_CRYPTO 1 +#endif #ifndef __ARM_FEATURE_AES #define __ARM_FEATURE_AES 1 #endif diff --git a/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c b/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c index 62974ae2ab..e1ebd577a2 100644 --- a/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c +++ b/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c @@ -20,9 +20,12 @@ #ifdef __clang__ #pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) #elif defined(__GNUC__) -#pragma GCC target("neon,crypto,aes") +#pragma GCC target("+simd+crypto") #endif +#ifndef __ARM_FEATURE_CRYPTO +#define __ARM_FEATURE_CRYPTO 1 +#endif #ifndef __ARM_FEATURE_AES #define __ARM_FEATURE_AES 1 #endif