diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-03-26 21:50:44 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-03-26 21:50:44 +0000 |
commit | b4f6ef8e16db0be6ebc3e8aa01bf51ee52082aeb (patch) | |
tree | ef84fa621368e7bce53a7708b5188ae8df1d9ed3 /seal.cpp | |
parent | 2ccaf2ef1d78727194b59d986b491e717c508917 (diff) | |
download | cryptopp-git-b4f6ef8e16db0be6ebc3e8aa01bf51ee52082aeb.tar.gz |
fix bugs in SEAL and Panama
Diffstat (limited to 'seal.cpp')
-rw-r--r-- | seal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ void SEAL_Policy<B>::CipherSetKey(const NameValuePairs ¶ms, const byte *key, template <class B> void SEAL_Policy<B>::CipherResynchronize(byte *keystreamBuffer, const byte *IV) { - m_outsideCounter = UnalignedGetWord<word32>(BIG_ENDIAN_ORDER, IV); + m_outsideCounter = IV ? UnalignedGetWord<word32>(BIG_ENDIAN_ORDER, IV) : 0; m_startCount = m_outsideCounter; m_insideCounter = 0; } |