diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-05 13:06:26 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-05 13:06:26 -0400 |
commit | 9767221125a27a5bca8b98b4a67a86aac05162a0 (patch) | |
tree | 541b0f0729042340394ad72dc7719b85c809ce9f /mars.cpp | |
parent | 0d14a527906b4f1dc5700c0e0b5913a7aad444e4 (diff) | |
download | cryptopp-git-9767221125a27a5bca8b98b4a67a86aac05162a0.tar.gz |
Fix MARS VariableKeyLength information (Issue 252)
Diffstat (limited to 'mars.cpp')
-rw-r--r-- | mars.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++)
|