diff options
Diffstat (limited to 'xts.cpp')
-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)
|