diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-11-25 02:52:19 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-11-25 02:52:19 -0500 |
commit | a074722bfa82d82c12879b8fdd9a62bac8bcaf89 (patch) | |
tree | 6321fd7bb3c9a3340ce8463242854a19bc0ef4e1 /ripemd.cpp | |
parent | 2d4614084a4250ce4d60d535ccf506605477e4ed (diff) | |
download | cryptopp-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)
{
|