summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-13 03:05:18 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-13 03:05:18 -0400
commit97aa173507c125ff2cc48c4ef30f776e6193ea47 (patch)
treea4a86d2e6874a22aeae7c3e0ca86c604ed2933b1
parentdab3b5fd90e09d1344512a9604d6c8d28cd63b17 (diff)
downloadcryptopp-git-97aa173507c125ff2cc48c4ef30f776e6193ea47.tar.gz
Update assert
-rw-r--r--xts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xts.cpp b/xts.cpp
index 9dffc391..fb6d2e2f 100644
--- a/xts.cpp
+++ b/xts.cpp
@@ -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)