diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-04-29 16:00:39 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-04-29 16:00:39 +0000 |
commit | afb08eb452e78d288db14004948bbfd8a26c5922 (patch) | |
tree | 230a162876fc2fca3a4924b96cd92773b6600e77 /strciphr.cpp | |
parent | 5fc752d268152ac25a0cb36517ec960a4fddd61c (diff) | |
download | cryptopp-git-afb08eb452e78d288db14004948bbfd8a26c5922.tar.gz |
add CFB mode FIPS variant
Diffstat (limited to 'strciphr.cpp')
-rw-r--r-- | strciphr.cpp | 2 |
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(); |