Revert "Improve performance of fix to Issue 146"
This reverts commit 5cce8c33ca. It was an incomplete remediation because it was applied to one area of the code, and not both areas of the code. The complete remediation will be checked-in next.
pull/157/head
parent
5cce8c33ca
commit
ab393851ec
|
|
@ -391,8 +391,7 @@ void Rijndael::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
|
||||||
// timing attack countermeasure. see comments at top for more details
|
// timing attack countermeasure. see comments at top for more details
|
||||||
const int cacheLineSize = GetCacheLineSize();
|
const int cacheLineSize = GetCacheLineSize();
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
volatile word32 _u = 0;
|
volatile word32 u = 0;
|
||||||
word32 u = _u;
|
|
||||||
#if defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS) || defined(CRYPTOPP_ALLOW_RIJNDAEL_UNALIGNED_DATA_ACCESS)
|
#if defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS) || defined(CRYPTOPP_ALLOW_RIJNDAEL_UNALIGNED_DATA_ACCESS)
|
||||||
for (i=0; i<2048; i+=cacheLineSize)
|
for (i=0; i<2048; i+=cacheLineSize)
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue