From 9767221125a27a5bca8b98b4a67a86aac05162a0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 5 Sep 2016 13:06:26 -0400 Subject: Fix MARS VariableKeyLength information (Issue 252) --- mars.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mars.cpp') 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++) -- cgit v1.2.1