diff options
author | lloyd <[email protected]> | 2008-11-10 22:53:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-10 22:53:17 +0000 |
commit | 0e30377b97bf7a999747da4d6b311c1170ee6107 (patch) | |
tree | e12af2544865d632d13c48848467bb8ae241ddbf /src/modes/ecb/ecb.h | |
parent | a4804e1e606424b8b9421eadb86ffde0a995382c (diff) |
Make cipher mode padder non-const in ECB and CBC
Diffstat (limited to 'src/modes/ecb/ecb.h')
-rw-r--r-- | src/modes/ecb/ecb.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modes/ecb/ecb.h b/src/modes/ecb/ecb.h index 902713455..81fee28d2 100644 --- a/src/modes/ecb/ecb.h +++ b/src/modes/ecb/ecb.h @@ -18,12 +18,12 @@ namespace Botan { class BOTAN_DLL ECB : public BlockCipherMode { protected: - ECB(BlockCipher* ciph, const BlockCipherModePaddingMethod* pad) : + ECB(BlockCipher* ciph, BlockCipherModePaddingMethod* pad) : BlockCipherMode(ciph, "ECB", 0), padder(pad) {} ~ECB() { delete padder; } std::string name() const; - const BlockCipherModePaddingMethod* padder; + BlockCipherModePaddingMethod* padder; private: bool valid_iv_size(u32bit) const; }; @@ -35,11 +35,11 @@ class BOTAN_DLL ECB_Encryption : public ECB { public: ECB_Encryption(BlockCipher* ciph, - const BlockCipherModePaddingMethod* pad) : + BlockCipherModePaddingMethod* pad) : ECB(ciph, pad) {} ECB_Encryption(BlockCipher* ciph, - const BlockCipherModePaddingMethod* pad, + BlockCipherModePaddingMethod* pad, const SymmetricKey& key) : ECB(ciph, pad) { set_key(key); } private: @@ -54,11 +54,11 @@ class BOTAN_DLL ECB_Decryption : public ECB { public: ECB_Decryption(BlockCipher* ciph, - const BlockCipherModePaddingMethod* pad) : + BlockCipherModePaddingMethod* pad) : ECB(ciph, pad) {} ECB_Decryption(BlockCipher* ciph, - const BlockCipherModePaddingMethod* pad, + BlockCipherModePaddingMethod* pad, const SymmetricKey& key) : ECB(ciph, pad) { set_key(key); } private: |