summaryrefslogtreecommitdiff
path: root/rijndael.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-07 19:05:30 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-07 19:05:30 -0400
commit5cce8c33cabd92afecfb0ec31f841d3082d15b3d (patch)
tree8b72fc0f937c5ee53b03253352ae60c79cbfc5b0 /rijndael.cpp
parent1700f440afe02952f6a6ce4087368c66a5034e3b (diff)
downloadcryptopp-git-5cce8c33cabd92afecfb0ec31f841d3082d15b3d.tar.gz
Improve performance of fix to Issue 146
Diffstat (limited to 'rijndael.cpp')
-rw-r--r--rijndael.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rijndael.cpp b/rijndael.cpp
index 92f9dea8..547a1990 100644
--- a/rijndael.cpp
+++ b/rijndael.cpp
@@ -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