diff options
Diffstat (limited to 'filters.cpp')
-rw-r--r-- | filters.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filters.cpp b/filters.cpp index 86bd616..9a749f4 100644 --- a/filters.cpp +++ b/filters.cpp @@ -885,7 +885,11 @@ byte * AuthenticatedDecryptionFilter::ChannelCreatePutSpace(const std::string &c size_t AuthenticatedDecryptionFilter::ChannelPut2(const std::string &channel, const byte *begin, size_t length, int messageEnd, bool blocking) { if (channel.empty()) + { + if (m_lastSize > 0) + m_hashVerifier.ForceNextPut(); return FilterWithBufferedInput::Put2(begin, length, messageEnd, blocking); + } if (channel == "AAD") return m_hashVerifier.Put2(begin, length, 0, blocking); |