diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-11-15 22:55:21 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-11-15 22:55:21 -0500 |
commit | 759e586bf0e68138aea6b1f79bfc0cf48960814e (patch) | |
tree | fdefa2e881d230c574b31441ee323c595785eb6c | |
parent | 8c9f3821e483851ce31c415a4542dedbe7eb15e4 (diff) | |
download | cryptopp-git-759e586bf0e68138aea6b1f79bfc0cf48960814e.tar.gz |
Sidestep failed self tests on GCC135
-rw-r--r-- | simon.h | 6 | ||||
-rw-r--r-- | speck.h | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -17,9 +17,11 @@ #include "seckey.h"
#include "secblock.h"
+// Cannot include PPC and PPC64 here. GCC8 on Power9 (and one other
+// Debian platform) produce incorrect results for Simon64. Play it
+// safe and disable CRYPTOPP_SIMON64_ADVANCED_PROCESS_BLOCKS.
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || \
- CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8 || \
- CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64
+ CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8
# ifndef CRYPTOPP_DISABLE_SIMON_SIMD
# define CRYPTOPP_SIMON64_ADVANCED_PROCESS_BLOCKS 1
# endif
@@ -17,9 +17,11 @@ #include "seckey.h"
#include "secblock.h"
+// Cannot include PPC and PPC64 here. GCC8 on Power9 (and one other
+// Debian platform) produce incorrect results for Speck64. Play it
+// safe and disable CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS.
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || \
- CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8 || \
- CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64
+ CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8
# ifndef CRYPTOPP_DISABLE_SPECK_SIMD
# define CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS 1
# endif
|