summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'blake2.cpp')
-rw-r--r--blake2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/blake2.cpp b/blake2.cpp
index c05856d0..a9bea136 100644
--- a/blake2.cpp
+++ b/blake2.cpp
@@ -34,6 +34,14 @@
# undef CRYPTOPP_ARM_NEON_AVAILABLE
#endif
+// BLAKE2s bug on AIX 7.1 (POWER7) with XLC 12.01
+// https://github.com/weidai11/cryptopp/issues/743
+#if defined(__xlC__) && (__xlC__ < 0x0d01)
+# define CRYPTOPP_DISABLE_ALTIVEC 1
+# undef CRYPTOPP_POWER7_AVAILABLE
+# undef CRYPTOPP_ALTIVEC_AVAILABLE
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
// Export the tables to the SIMD files