summaryrefslogtreecommitdiff
path: root/xts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xts.cpp')
-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)