From eb5732337be02e36c8f5293a2d22d8f74130e684 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 --- vmac.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'vmac.cpp') diff --git a/vmac.cpp b/vmac.cpp index 6c784f15..ecfd278d 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