summaryrefslogtreecommitdiff
path: root/ttmac.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 /ttmac.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 'ttmac.cpp')
-rw-r--r--ttmac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ttmac.cpp b/ttmac.cpp
index 98954370..7bcb9855 100644
--- a/ttmac.cpp
+++ b/ttmac.cpp
@@ -99,8 +99,8 @@ void TTMAC_Base::Transform(word32 *digest, const word32 *X, bool last)
{
#define Subround(f, a, b, c, d, e, x, s, k) \
a += f(b, c, d) + x + k;\
- a = rotlFixed((word32)a, s) + e;\
- c = rotlFixed((word32)c, 10U)
+ a = rotlVariable((word32)a, s) + e;\
+ c = rotlVariable((word32)c, 10U)
word32 a1, b1, c1, d1, e1, a2, b2, c2, d2, e2;
word32 *trackA, *trackB;