summaryrefslogtreecommitdiff
path: root/mars.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-05 13:06:26 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-05 13:06:26 -0400
commit9767221125a27a5bca8b98b4a67a86aac05162a0 (patch)
tree541b0f0729042340394ad72dc7719b85c809ce9f /mars.cpp
parent0d14a527906b4f1dc5700c0e0b5913a7aad444e4 (diff)
downloadcryptopp-git-9767221125a27a5bca8b98b4a67a86aac05162a0.tar.gz
Fix MARS VariableKeyLength information (Issue 252)
Diffstat (limited to 'mars.cpp')
-rw-r--r--mars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mars.cpp b/mars.cpp
index aa7693e6..af7e12fd 100644
--- a/mars.cpp
+++ b/mars.cpp
@@ -58,7 +58,7 @@ void MARS::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, by
unsigned int i;
word32 a, b, c, d, l, m, r, t;
const word32 *k = m_k;
-
+
Block::Get(inBlock)(a)(b)(c)(d);
a += k[0]; b += k[1]; c += k[2]; d += k[3];
@@ -109,7 +109,7 @@ void MARS::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, by
const word32 *k = m_k;
Block::Get(inBlock)(d)(c)(b)(a);
-
+
d += k[36]; c += k[37]; b += k[38]; a += k[39];
for (i=0; i<8; i++)