summaryrefslogtreecommitdiff
path: root/ripemd.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 /ripemd.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 'ripemd.cpp')
-rw-r--r--ripemd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ripemd.cpp b/ripemd.cpp
index a9d62391..163b2803 100644
--- a/ripemd.cpp
+++ b/ripemd.cpp
@@ -31,8 +31,8 @@ NAMESPACE_BEGIN(CryptoPP)
// for 160 and 320
#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 = rotlConstant<10>((word32)c)
void RIPEMD160::InitState(HashWordType *state)
{
@@ -459,7 +459,7 @@ void RIPEMD320::Transform (word32 *digest, const word32 *X)
// for 128 and 256
#define Subround(f, a, b, c, d, x, s, k) \
a += f(b, c, d) + x + k;\
- a = rotlFixed((word32)a, s);
+ a = rotlVariable((word32)a, s);
void RIPEMD128::InitState(HashWordType *state)
{