summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2004-04-29 16:00:39 +0000
committerweidai <weidai11@users.noreply.github.com>2004-04-29 16:00:39 +0000
commitafb08eb452e78d288db14004948bbfd8a26c5922 (patch)
tree230a162876fc2fca3a4924b96cd92773b6600e77 /strciphr.cpp
parent5fc752d268152ac25a0cb36517ec960a4fddd61c (diff)
downloadcryptopp-git-afb08eb452e78d288db14004948bbfd8a26c5922.tar.gz
add CFB mode FIPS variant
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 3394b204..4cb71c69 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();