summaryrefslogtreecommitdiff
path: root/gcm.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-28 04:24:22 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-28 04:24:22 -0400
commitc601213ce13f8413cf3af686c18232ee6d42a50f (patch)
tree78954647ca90e60da1c52785e7d6dafbfc7154c7 /gcm.cpp
parente185cbd80335a7f1f9e69bb4c078f3369c047b9c (diff)
downloadcryptopp-git-c601213ce13f8413cf3af686c18232ee6d42a50f.tar.gz
Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools
Autotools sets up its config.h file with the '#define XXX 0' or '#define XXX 1' pattern. This check-in makes the sources Autotools aware. We need to verify CMake does the same
Diffstat (limited to 'gcm.cpp')
-rw-r--r--gcm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcm.cpp b/gcm.cpp
index 84129b56..59236ac2 100644
--- a/gcm.cpp
+++ b/gcm.cpp
@@ -438,7 +438,7 @@ size_t GCM_Base::AuthenticateBlocks(const byte *data, size_t len)
#define READ_TABLE_WORD64_COMMON(a, b, c, d) *(word64 *)(void *)(mulTable+(a*1024)+(b*256)+c+d*8)
- #ifdef CRYPTOPP_LITTLE_ENDIAN
+ #if (CRYPTOPP_LITTLE_ENDIAN)
#if CRYPTOPP_BOOL_SLOW_WORD64
word32 z0 = (word32)x0;
word32 z1 = (word32)(x0>>32);
@@ -509,7 +509,7 @@ size_t GCM_Base::AuthenticateBlocks(const byte *data, size_t len)
#define READ_TABLE_WORD64_COMMON(a, c, d) *(word64 *)(void *)(mulTable+(a)*256*16+(c)+(d)*8)
- #ifdef CRYPTOPP_LITTLE_ENDIAN
+ #if (CRYPTOPP_LITTLE_ENDIAN)
#if CRYPTOPP_BOOL_SLOW_WORD64
word32 z0 = (word32)x0;
word32 z1 = (word32)(x0>>32);