summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-05-05 23:27:55 -0400
committerJeffrey Walton <noloader@gmail.com>2018-05-05 23:27:55 -0400
commit3e965ac9b327c46abca62320e221dbdaf1631239 (patch)
tree2193075e2d6582a4cc4d7dc60467fc8eb35db581 /blake2.cpp
parentd1087291b35f1dd3a29960201d673bf4c1a491f0 (diff)
downloadcryptopp-git-3e965ac9b327c46abca62320e221dbdaf1631239.tar.gz
Back-off on Hash asserts (GH #652)
The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders.
Diffstat (limited to 'blake2.cpp')
-rw-r--r--blake2.cpp2
1 files changed, 1 insertions, 1 deletions
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<W, T_64bit>::Restart(const BLAKE2_ParameterBlock<T_64bit>& bloc
template <class W, bool T_64bit>
void BLAKE2_Base<W, T_64bit>::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();