diff options
Diffstat (limited to 'src/modes/cbc/cbc.h')
-rw-r--r-- | src/modes/cbc/cbc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modes/cbc/cbc.h b/src/modes/cbc/cbc.h index 3069d6cb5..238780067 100644 --- a/src/modes/cbc/cbc.h +++ b/src/modes/cbc/cbc.h @@ -20,6 +20,8 @@ class BOTAN_DLL CBC_Encryption : public BlockCipherMode CBC_Encryption(BlockCipher*, const BlockCipherModePaddingMethod*); CBC_Encryption(BlockCipher*, const BlockCipherModePaddingMethod*, const SymmetricKey&, const InitializationVector&); + + ~CBC_Encryption() { delete padder; } private: std::string name() const; void write(const byte[], u32bit); @@ -36,6 +38,8 @@ class BOTAN_DLL CBC_Decryption : public BlockCipherMode CBC_Decryption(BlockCipher*, const BlockCipherModePaddingMethod*); CBC_Decryption(BlockCipher*, const BlockCipherModePaddingMethod*, const SymmetricKey&, const InitializationVector&); + + ~CBC_Decryption() { delete padder; } private: std::string name() const; void write(const byte[], u32bit); |