summaryrefslogtreecommitdiff
path: root/camellia.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-04-13 16:53:53 -0400
committerJeffrey Walton <noloader@gmail.com>2017-04-13 16:53:53 -0400
commit471e2f0d913850648843570520f58e7d31cd5a2c (patch)
treede42f538588ed10d899123696943806593537ef3 /camellia.cpp
parent2bb36c790e7cbe6fc7aeef2998d1b9a49935762b (diff)
downloadcryptopp-git-471e2f0d913850648843570520f58e7d31cd5a2c.tar.gz
Remove unneeded assert from Camellia
Diffstat (limited to 'camellia.cpp')
-rw-r--r--camellia.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/camellia.cpp b/camellia.cpp
index 13880393..da48caa6 100644
--- a/camellia.cpp
+++ b/camellia.cpp
@@ -216,13 +216,12 @@ void Camellia::Base::ProcessAndXorBlock(const byte *inBlock, const byte *xorBloc
rh ^= KS(0,2);
rl ^= KS(0,3);
- // timing attack countermeasure. see comments at top for more details
+ // Timing attack countermeasure. see comments in Rijndael for more details
const int cacheLineSize = GetCacheLineSize();
unsigned int i;
volatile word32 _u = 0;
word32 u = _u;
- CRYPTOPP_ASSERT(IsAlignedOn(s1,GetAlignmentOf<word32>()));
for (i=0; i<256; i+=cacheLineSize)
u &= *(const word32 *)(void*)(s1+i);
u &= *(const word32 *)(void*)(s1+252);