Backed-off assert for poly1305.cpp in Debug builds

pull/347/head
Jeffrey Walton 2016-12-01 21:52:01 -05:00
parent d91244a657
commit 406bec8fc7
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,8 @@ void Poly1305_Base<T>::UncheckedSetKey(const byte *key, unsigned int length, con
template <class T>
void Poly1305_Base<T>::Update(const byte *input, size_t length)
{
CRYPTOPP_ASSERT((input && length) || !(input || length));
CRYPTOPP_ASSERT((input && length) || !length);
if (!length) return;
size_t rem, num = m_idx;
if (num)