diff --git a/iterhash.cpp b/iterhash.cpp index bf287164..33a697a5 100644 --- a/iterhash.cpp +++ b/iterhash.cpp @@ -12,6 +12,7 @@ NAMESPACE_BEGIN(CryptoPP) template void IteratedHashBase::Update(const byte *input, size_t len) { + CRYPTOPP_ASSERT((input && len) || !(input || len)); HashWordType oldCountLo = m_countLo, oldCountHi = m_countHi; if ((m_countLo = oldCountLo + HashWordType(len)) < oldCountLo) m_countHi++; // carry from low to high