mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Improve performance of fix to Issue 146
This commit is contained in:
parent
1700f440af
commit
5cce8c33ca
@ -391,7 +391,8 @@ void Rijndael::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
|
||||
// timing attack countermeasure. see comments at top for more details
|
||||
const int cacheLineSize = GetCacheLineSize();
|
||||
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)
|
||||
for (i=0; i<2048; i+=cacheLineSize)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user