diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-05-05 23:27:55 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-05-05 23:27:55 -0400 |
commit | 3e965ac9b327c46abca62320e221dbdaf1631239 (patch) | |
tree | 2193075e2d6582a4cc4d7dc60467fc8eb35db581 /blake2.cpp | |
parent | d1087291b35f1dd3a29960201d673bf4c1a491f0 (diff) | |
download | cryptopp-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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();
|