summaryrefslogtreecommitdiff
path: root/chacha_avx.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-09-17 20:39:23 -0400
committerJeffrey Walton <noloader@gmail.com>2021-09-17 20:39:23 -0400
commitf0a32f0c6a515ec7f4d753747f1dcee040d38a5a (patch)
tree498c15e405ac412326aefc2dae9e1c040d0c8aca /chacha_avx.cpp
parent08f3fc5676afcd2ea171b13ecae5f467859d021f (diff)
downloadcryptopp-git-f0a32f0c6a515ec7f4d753747f1dcee040d38a5a.tar.gz
Disable ChaCha20 AVX2 implementation (GH #1069)
Diffstat (limited to 'chacha_avx.cpp')
-rw-r--r--chacha_avx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/chacha_avx.cpp b/chacha_avx.cpp
index c647fa1e..23f10511 100644
--- a/chacha_avx.cpp
+++ b/chacha_avx.cpp
@@ -20,6 +20,9 @@
#include "chacha.h"
#include "misc.h"
+// https://github.com/weidai11/cryptopp/issues/1069
+#undef CRYPTOPP_AVX2_AVAILABLE
+
#if defined(CRYPTOPP_AVX2_AVAILABLE)
# include <xmmintrin.h>
# include <emmintrin.h>