summaryrefslogtreecommitdiff
path: root/simon.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-11-16 00:08:56 -0500
committerJeffrey Walton <noloader@gmail.com>2019-11-16 00:08:56 -0500
commit9e824c4369d4e4da08366cc6138fb71a3317651d (patch)
treed055bd0eb09ac0d4bf63f20ca6868543e0dac572 /simon.h
parent759e586bf0e68138aea6b1f79bfc0cf48960814e (diff)
downloadcryptopp-git-9e824c4369d4e4da08366cc6138fb71a3317651d.tar.gz
Use byte pointer for CONST_V32_CAST and NCONST_V32_CAST
The underlying byte arrays may not be aligned for a word
Diffstat (limited to 'simon.h')
-rw-r--r--simon.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/simon.h b/simon.h
index e8d3527f..92a0cccf 100644
--- a/simon.h
+++ b/simon.h
@@ -17,11 +17,9 @@
#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_ARM32 || CRYPTOPP_BOOL_ARMV8 || \
+ CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64
# ifndef CRYPTOPP_DISABLE_SIMON_SIMD
# define CRYPTOPP_SIMON64_ADVANCED_PROCESS_BLOCKS 1
# endif