aboutsummaryrefslogtreecommitdiffstats
path: root/include/mode_pad.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mode_pad.h')
-rw-r--r--include/mode_pad.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mode_pad.h b/include/mode_pad.h
index 38cb55487..a2c56f2eb 100644
--- a/include/mode_pad.h
+++ b/include/mode_pad.h
@@ -14,13 +14,16 @@ namespace Botan {
/*************************************************
* Block Cipher Mode Padding Method *
*************************************************/
-class BlockCipherModePaddingMethod : public Algorithm
+class BlockCipherModePaddingMethod
{
public:
+ virtual std::string name() const = 0;
+
virtual void pad(byte[], u32bit, u32bit) const = 0;
virtual u32bit unpad(const byte[], u32bit) const = 0;
virtual u32bit pad_bytes(u32bit, u32bit) const;
virtual bool valid_blocksize(u32bit) const = 0;
+ virtual ~BlockCipherModePaddingMethod() {}
};
/*************************************************