diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-29 16:00:39 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-29 16:00:39 +0000 |
commit | 8292126d81f89e703e3c92f1fc8c8bf1f5d9c4a8 (patch) | |
tree | 230a162876fc2fca3a4924b96cd92773b6600e77 /strciphr.cpp | |
parent | f0e00c67ca788de19b18cac39ed3fdc904dbc811 (diff) | |
download | cryptopp-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.cpp | 2 |
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(); |