summaryrefslogtreecommitdiff
path: root/dmac.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-10-23 17:27:49 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-10-23 17:27:49 +0000
commitf4782fe5cba3832fa83efb316afa141f7653b1d6 (patch)
tree21239830dea24279ff4ece4f7fbd80486336e18c /dmac.h
parent35f3f4048fd32942ee2f03e04b5de9ba54e00b7e (diff)
downloadcryptopp-f4782fe5cba3832fa83efb316afa141f7653b1d6.tar.gz
reset m_counter in TruncatedFinal
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@413 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'dmac.h')
-rw-r--r--dmac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dmac.h b/dmac.h
index 6d4c0b7..80b54ac 100644
--- a/dmac.h
+++ b/dmac.h
@@ -73,6 +73,8 @@ void DMAC_Base<T>::TruncatedFinal(byte *mac, size_t size)
m_mac1.Update(pad, padByte);
m_mac1.TruncatedFinal(mac, size);
m_f2.ProcessBlock(mac);
+
+ m_counter = 0; // reset for next message
}
template <class T>