From 21e37311f74460550001f25240be0ebd83e11ea9 Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jan 2009 02:51:45 +0000 Subject: fix incorrect VMAC computation on message lengths that are >64 mod 128 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@431 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- vmac.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'vmac.cpp') diff --git a/vmac.cpp b/vmac.cpp index 6c784f1..ecfd278 100755 --- a/vmac.cpp +++ b/vmac.cpp @@ -472,20 +472,18 @@ void VMAC_Base::VHASH_Update_Template(const word64 *data, size_t blocksRemaining DeclareNH(nhA); DeclareNH(nhB); + i = 0; if (blocksRemainingInWord64 < L1KeyLengthInWord64) { if (blocksRemainingInWord64 % 8) { innerLoopEnd = blocksRemainingInWord64 % 8; - for (i=0; i