From 00ff370f845ebcf00c00ba19c7ce7040f2646ee8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 10 Feb 2026 08:53:37 +0100 Subject: [PATCH] Try to enable aes256-gcm even on non-clang compilers --- src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c | 2 +- .../crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c b/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c index a3f21aa7..c51d60bf 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c +++ b/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c @@ -47,7 +47,7 @@ crypto_aead_aes256gcm_keygen(unsigned char k[crypto_aead_aes256gcm_KEYBYTES]) randombytes_buf(k, crypto_aead_aes256gcm_KEYBYTES); } -#if !((defined(HAVE_ARMCRYPTO) && defined(__clang__) && defined(NATIVE_LITTLE_ENDIAN)) || \ +#if !((defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)) || \ (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H))) #ifndef ENOSYS diff --git a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c index 83ed6896..9db09f33 100644 --- a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c +++ b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c @@ -13,7 +13,7 @@ #include "runtime.h" #include "utils.h" -#if defined(HAVE_ARMCRYPTO) && defined(__clang__) && defined(NATIVE_LITTLE_ENDIAN) +#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN) #if !defined(_MSC_VER) || _MSC_VER < 1800 #define __vectorcall