summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-29 16:00:39 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-29 16:00:39 +0000
commit8292126d81f89e703e3c92f1fc8c8bf1f5d9c4a8 (patch)
tree230a162876fc2fca3a4924b96cd92773b6600e77 /strciphr.cpp
parentf0e00c67ca788de19b18cac39ed3fdc904dbc811 (diff)
downloadcryptopp-8292126d81f89e703e3c92f1fc8c8bf1f5d9c4a8.tar.gz
add CFB mode FIPS variant
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@165 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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();