summaryrefslogtreecommitdiff
path: root/rijndael.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-25 02:52:19 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-25 02:52:19 -0500
commita074722bfa82d82c12879b8fdd9a62bac8bcaf89 (patch)
tree6321fd7bb3c9a3340ce8463242854a19bc0ef4e1 /rijndael.cpp
parent2d4614084a4250ce4d60d535ccf506605477e4ed (diff)
downloadcryptopp-git-a074722bfa82d82c12879b8fdd9a62bac8bcaf89.tar.gz
Switch to rotlConstant and rotrConstant
This will help Clang and its need for a constexpr
Diffstat (limited to 'rijndael.cpp')
-rw-r--r--rijndael.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rijndael.cpp b/rijndael.cpp
index 55bf6510..9074cec9 100644
--- a/rijndael.cpp
+++ b/rijndael.cpp
@@ -253,7 +253,7 @@ void Rijndael::Base::FillEncTable()
for (int j=0; j<4; j++)
{
Te[i+j*256] = y;
- y = rotrFixed(y, 8);
+ y = rotrConstant<8>(y);
}
#endif
}
@@ -276,7 +276,7 @@ void Rijndael::Base::FillDecTable()
for (int j=0; j<4; j++)
{
Td[i+j*256] = y;
- y = rotrFixed(y, 8);
+ y = rotrConstant<8>(y);
}
#endif
}