From 97aa173507c125ff2cc48c4ef30f776e6193ea47 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 13 Oct 2019 03:05:18 -0400 Subject: Update assert --- xts.cpp | 4 ++-- 1 file 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) -- cgit v1.2.1