summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'strciphr.cpp')
-rw-r--r--strciphr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/strciphr.cpp b/strciphr.cpp
index 3394b20..4cb71c6 100644
--- a/strciphr.cpp
+++ b/strciphr.cpp
@@ -119,6 +119,8 @@ void CFB_CipherTemplate<BASE>::Resynchronize(const byte *iv)
template <class BASE>
void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString, unsigned int length)
{
+ assert(length % MandatoryBlockSize() == 0);
+
PolicyInterface &policy = AccessPolicy();
unsigned int bytesPerIteration = policy.GetBytesPerIteration();
unsigned int alignment = policy.GetAlignment();