diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
commit | b7de164d6251dc066123b59bc15d30c74e920756 (patch) | |
tree | 650e67242386d55616a2038c5cbc7042568ed377 /strciphr.cpp | |
parent | 7b64ca489a7e1da36b02b4a35d149275914d8268 (diff) | |
download | cryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz |
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'strciphr.cpp')
-rw-r--r-- | strciphr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/strciphr.cpp b/strciphr.cpp index 39f4d152..49f42cc9 100644 --- a/strciphr.cpp +++ b/strciphr.cpp @@ -40,7 +40,7 @@ void AdditiveCipherTemplate<S>::GenerateBlock(byte *outString, size_t length) if (!length) return; } - assert(m_leftOver == 0); + CRYPTOPP_ASSERT(m_leftOver == 0); PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); @@ -79,7 +79,7 @@ void AdditiveCipherTemplate<S>::ProcessData(byte *outString, const byte *inStrin if (!length) return; } - assert(m_leftOver == 0); + CRYPTOPP_ASSERT(m_leftOver == 0); PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); @@ -177,7 +177,7 @@ void CFB_CipherTemplate<BASE>::Resynchronize(const byte *iv, int length) template <class BASE> void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString, size_t length) { - assert(length % this->MandatoryBlockSize() == 0); + CRYPTOPP_ASSERT(length % this->MandatoryBlockSize() == 0); PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); @@ -197,7 +197,7 @@ void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString if (!length) return; - assert(m_leftOver == 0); + CRYPTOPP_ASSERT(m_leftOver == 0); if (policy.CanIterate() && length >= bytesPerIteration && IsAlignedOn(outString, alignment)) { |