From 495a16cbe05f30c38c3e7e12a1d9e9de4e2530c5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 13 Nov 2022 21:26:04 +0100 Subject: [PATCH] MSVC cannot compile AES-GCM for now --- src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c | 2 +- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.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 98421525..715e1f5c 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c +++ b/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c @@ -48,7 +48,7 @@ crypto_aead_aes256gcm_keygen(unsigned char k[crypto_aead_aes256gcm_KEYBYTES]) } #if !((defined(HAVE_ARMCRYPTO) && defined(__GNUC__) && defined(NATIVE_LITTLE_ENDIAN)) || \ - (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H))) + (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) && defined(__GNUC__))) #ifndef ENOSYS #define ENOSYS ENXIO diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 6e27c28f..2fa675ad 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -13,7 +13,7 @@ #include "runtime.h" #include "utils.h" -#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) +#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) && defined(__GNUC__) #ifdef __GNUC__ #pragma GCC target("ssse3")