diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-10-23 17:27:49 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-10-23 17:27:49 +0000 |
commit | 7838a7f8147ab2e97e52175d7475b056d2de4062 (patch) | |
tree | 21239830dea24279ff4ece4f7fbd80486336e18c /dmac.h | |
parent | f28f8dc774e0cd2e2f9efa5c80dd7f681a26e452 (diff) | |
download | cryptopp-git-7838a7f8147ab2e97e52175d7475b056d2de4062.tar.gz |
reset m_counter in TruncatedFinal
Diffstat (limited to 'dmac.h')
-rw-r--r-- | dmac.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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> |