From 82b2f5a4c408e34514c1ff9730fd8f29c43cc560 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 11 Oct 2015 01:17:00 +0200 Subject: [PATCH] aes256gcm doesn't use SSE4.1 instructions any more --- src/libsodium/Makefile.am | 2 +- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/Makefile.am b/src/libsodium/Makefile.am index 201c0bd3..5f94c407 100644 --- a/src/libsodium/Makefile.am +++ b/src/libsodium/Makefile.am @@ -273,7 +273,7 @@ noinst_LTLIBRARIES = libaesni.la libsse2.la libaesni_la_LDFLAGS = $(libsodium_la_LDFLAGS) libaesni_la_CPPFLAGS = $(libsodium_la_CPPFLAGS) \ - @CFLAGS_SSE4_1@ @CFLAGS_AESNI@ @CFLAGS_PCLMUL@ + @CFLAGS_SSSE3@ @CFLAGS_AESNI@ @CFLAGS_PCLMUL@ libaesni_la_SOURCES = \ crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c 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 eabcd046..734b7c82 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -14,7 +14,7 @@ #if defined(HAVE_WMMINTRIN_H) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))) -#pragma GCC target("sse4.1") +#pragma GCC target("ssse3") #pragma GCC target("aes") #pragma GCC target("pclmul")