aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-27 03:54:31 +0000
committerlloyd <[email protected]>2009-12-27 03:54:31 +0000
commitc947acd2f62746d727bfcda9b9f2a3511c3d815d (patch)
tree2eda56d55d6a2bac40bab2c3975545837f73dd01
parenta20ea163139b544405e3597050ea27346e8ead2a (diff)
CBC decrypt on large blocks
-rw-r--r--src/filters/modes/cbc/cbc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters/modes/cbc/cbc.cpp b/src/filters/modes/cbc/cbc.cpp
index 9303dd9fd..fb997b7ef 100644
--- a/src/filters/modes/cbc/cbc.cpp
+++ b/src/filters/modes/cbc/cbc.cpp
@@ -122,7 +122,8 @@ CBC_Decryption::CBC_Decryption(BlockCipher* ciph,
cipher(ciph), padder(pad),
buf_op(std::tr1::bind(&CBC_Decryption::cbc_decrypt, this, _1, _2),
std::tr1::bind(&CBC_Decryption::cbc_final, this, _1, _2),
- 2 * cipher->BLOCK_SIZE, cipher->BLOCK_SIZE)
+ BOTAN_PARALLEL_BLOCKS_CBC * cipher->BLOCK_SIZE,
+ cipher->BLOCK_SIZE)
{
if(!padder->valid_blocksize(cipher->BLOCK_SIZE))
throw Invalid_Block_Size(name(), padder->name());
@@ -141,7 +142,8 @@ CBC_Decryption::CBC_Decryption(BlockCipher* ciph,
cipher(ciph), padder(pad),
buf_op(std::tr1::bind(&CBC_Decryption::cbc_decrypt, this, _1, _2),
std::tr1::bind(&CBC_Decryption::cbc_final, this, _1, _2),
- 2 * cipher->BLOCK_SIZE, cipher->BLOCK_SIZE)
+ BOTAN_PARALLEL_BLOCKS_CBC * cipher->BLOCK_SIZE,
+ cipher->BLOCK_SIZE)
{
if(!padder->valid_blocksize(cipher->BLOCK_SIZE))
throw Invalid_Block_Size(name(), padder->name());