mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-08 22:26:38 +00:00
Remove unneeded assert from Camellia
This commit is contained in:
parent
2bb36c790e
commit
471e2f0d91
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user