diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-13 03:05:18 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-13 03:05:18 -0400 |
commit | 97aa173507c125ff2cc48c4ef30f776e6193ea47 (patch) | |
tree | a4a86d2e6874a22aeae7c3e0ca86c604ed2933b1 | |
parent | dab3b5fd90e09d1344512a9604d6c8d28cd63b17 (diff) | |
download | cryptopp-git-97aa173507c125ff2cc48c4ef30f776e6193ea47.tar.gz |
Update assert
-rw-r--r-- | xts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ using namespace CryptoPP; // are used.
inline void XorBuffer(byte *buf, const byte *mask, size_t count)
{
- CRYPTOPP_ASSERT(count >= 0 && (count % 16 == 0));
+ CRYPTOPP_ASSERT(count >= 16 && (count % 16 == 0));
#if defined(__SSE2__) || defined(_M_X64)
#if (CRYPTOPP_XTS_WIDE_BLOCK_CIPHERS)
@@ -75,7 +75,7 @@ inline void XorBuffer(byte *buf, const byte *mask, size_t count) // are used.
inline void XorBuffer(byte *output, const byte *input, const byte *mask, size_t count)
{
- CRYPTOPP_ASSERT(count >= 0 && (count % 16 == 0));
+ CRYPTOPP_ASSERT(count >= 16 && (count % 16 == 0));
#if defined(__SSE2__) || defined(_M_X64)
#if (CRYPTOPP_XTS_WIDE_BLOCK_CIPHERS)
|