aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/cbc/cbc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 22:53:17 +0000
committerlloyd <[email protected]>2008-11-10 22:53:17 +0000
commit0e30377b97bf7a999747da4d6b311c1170ee6107 (patch)
treee12af2544865d632d13c48848467bb8ae241ddbf /src/modes/cbc/cbc.cpp
parenta4804e1e606424b8b9421eadb86ffde0a995382c (diff)
Make cipher mode padder non-const in ECB and CBC
Diffstat (limited to 'src/modes/cbc/cbc.cpp')
-rw-r--r--src/modes/cbc/cbc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modes/cbc/cbc.cpp b/src/modes/cbc/cbc.cpp
index ff0c417b2..2bb2320e6 100644
--- a/src/modes/cbc/cbc.cpp
+++ b/src/modes/cbc/cbc.cpp
@@ -13,7 +13,7 @@ namespace Botan {
* CBC Encryption Constructor *
*************************************************/
CBC_Encryption::CBC_Encryption(BlockCipher* ciph,
- const BlockCipherModePaddingMethod* pad) :
+ BlockCipherModePaddingMethod* pad) :
BlockCipherMode(ciph, "CBC", ciph->BLOCK_SIZE),
padder(pad)
{
@@ -25,7 +25,7 @@ CBC_Encryption::CBC_Encryption(BlockCipher* ciph,
* CBC Encryption Constructor *
*************************************************/
CBC_Encryption::CBC_Encryption(BlockCipher* ciph,
- const BlockCipherModePaddingMethod* pad,
+ BlockCipherModePaddingMethod* pad,
const SymmetricKey& key,
const InitializationVector& iv) :
BlockCipherMode(ciph, "CBC", ciph->BLOCK_SIZE),
@@ -82,7 +82,7 @@ std::string CBC_Encryption::name() const
* CBC Decryption Constructor *
*************************************************/
CBC_Decryption::CBC_Decryption(BlockCipher* ciph,
- const BlockCipherModePaddingMethod* pad) :
+ BlockCipherModePaddingMethod* pad) :
BlockCipherMode(ciph, "CBC", ciph->BLOCK_SIZE),
padder(pad)
{
@@ -95,7 +95,7 @@ CBC_Decryption::CBC_Decryption(BlockCipher* ciph,
* CBC Decryption Constructor *
*************************************************/
CBC_Decryption::CBC_Decryption(BlockCipher* ciph,
- const BlockCipherModePaddingMethod* pad,
+ BlockCipherModePaddingMethod* pad,
const SymmetricKey& key,
const InitializationVector& iv) :
BlockCipherMode(ciph, "CBC", ciph->BLOCK_SIZE),