summaryrefslogtreecommitdiff
path: root/sosemanuk.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-27 21:54:15 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-27 21:54:15 -0500
commit2a4d58a2087088150076180ffbae6be010f6d3df (patch)
tree29c07de507a4a62e4587709d89e6684957191b40 /sosemanuk.cpp
parent45db15e51be05f000d52e52b03a24ced1e1496ac (diff)
downloadcryptopp-git-2a4d58a2087088150076180ffbae6be010f6d3df.tar.gz
Fix Sosemanuk when -DCRYPTOPP_DISABLE_ASM is in effect
It looks like a copy/paste error was introduced at Commit a074722bfa82
Diffstat (limited to 'sosemanuk.cpp')
-rw-r--r--sosemanuk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sosemanuk.cpp b/sosemanuk.cpp
index 276ebb2d..cd8c0bb4 100644
--- a/sosemanuk.cpp
+++ b/sosemanuk.cpp
@@ -626,7 +626,7 @@ void SosemanukPolicy::OperateKeystream(KeystreamOperation operation, byte *outpu
#ifndef CRYPTOPP_GENERATE_X64_MASM
{
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) && !defined(CRYPTOPP_DISABLE_SOSEMANUK_ASM)
-#define MUL_A(x) (x = (rotlConstant<7>(x)), x ^ s_sosemanukMulTables[byte(x)])
+#define MUL_A(x) (x = (rotlConstant<8>(x)), x ^ s_sosemanukMulTables[byte(x)])
#else
#define MUL_A(x) (((x) << 8) ^ s_sosemanukMulTables[(x) >> 24])
#endif