diff --git a/blake2.cpp b/blake2.cpp index e858f8c7..1af13fdb 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -356,7 +356,7 @@ void BLAKE2_Base::Restart(const BLAKE2_ParameterBlock& bloc template void BLAKE2_Base::Update(const byte *input, size_t length) { - CRYPTOPP_ASSERT(input != NULLPTR); + CRYPTOPP_ASSERT(!(input == NULLPTR && length != 0)); if (length == 0) { return; } State& state = *m_state.data();