summaryrefslogtreecommitdiff
path: root/dmac.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-10-23 17:27:49 +0000
committerweidai <weidai11@users.noreply.github.com>2007-10-23 17:27:49 +0000
commit7838a7f8147ab2e97e52175d7475b056d2de4062 (patch)
tree21239830dea24279ff4ece4f7fbd80486336e18c /dmac.h
parentf28f8dc774e0cd2e2f9efa5c80dd7f681a26e452 (diff)
downloadcryptopp-git-7838a7f8147ab2e97e52175d7475b056d2de4062.tar.gz
reset m_counter in TruncatedFinal
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 6d4c0b70..80b54ac2 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>