aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/mode_pad
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-07-30 18:54:30 +0200
committerDaniel Seither <[email protected]>2015-07-30 18:54:30 +0200
commitbc46687fffbdc970b13791c9c17066efb459f4cb (patch)
treed2a81da26ec517b456481e84930b17ac5a457a45 /src/lib/modes/mode_pad
parentfee2617be48d7c86b763dbe198797b02a8ea9a7d (diff)
modes: Add missing overrides
Diffstat (limited to 'src/lib/modes/mode_pad')
-rw-r--r--src/lib/modes/mode_pad/mode_pad.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/modes/mode_pad/mode_pad.h b/src/lib/modes/mode_pad/mode_pad.h
index c4d5baf2e..91102c66c 100644
--- a/src/lib/modes/mode_pad/mode_pad.h
+++ b/src/lib/modes/mode_pad/mode_pad.h
@@ -63,11 +63,11 @@ class BOTAN_DLL PKCS7_Padding : public BlockCipherModePaddingMethod
size_t final_block_bytes,
size_t block_size) const override;
- size_t unpad(const byte[], size_t) const;
+ size_t unpad(const byte[], size_t) const override;
- bool valid_blocksize(size_t bs) const { return (bs > 0 && bs < 256); }
+ bool valid_blocksize(size_t bs) const override { return (bs > 0 && bs < 256); }
- std::string name() const { return "PKCS7"; }
+ std::string name() const override { return "PKCS7"; }
};
/**
@@ -80,11 +80,11 @@ class BOTAN_DLL ANSI_X923_Padding : public BlockCipherModePaddingMethod
size_t final_block_bytes,
size_t block_size) const override;
- size_t unpad(const byte[], size_t) const;
+ size_t unpad(const byte[], size_t) const override;
- bool valid_blocksize(size_t bs) const { return (bs > 0 && bs < 256); }
+ bool valid_blocksize(size_t bs) const override { return (bs > 0 && bs < 256); }
- std::string name() const { return "X9.23"; }
+ std::string name() const override { return "X9.23"; }
};
/**
@@ -97,11 +97,11 @@ class BOTAN_DLL OneAndZeros_Padding : public BlockCipherModePaddingMethod
size_t final_block_bytes,
size_t block_size) const override;
- size_t unpad(const byte[], size_t) const;
+ size_t unpad(const byte[], size_t) const override;
- bool valid_blocksize(size_t bs) const { return (bs > 0); }
+ bool valid_blocksize(size_t bs) const override { return (bs > 0); }
- std::string name() const { return "OneAndZeros"; }
+ std::string name() const override { return "OneAndZeros"; }
};
/**
@@ -112,11 +112,11 @@ class BOTAN_DLL Null_Padding : public BlockCipherModePaddingMethod
public:
void add_padding(secure_vector<byte>&, size_t, size_t) const override {}
- size_t unpad(const byte[], size_t size) const { return size; }
+ size_t unpad(const byte[], size_t size) const override { return size; }
- bool valid_blocksize(size_t) const { return true; }
+ bool valid_blocksize(size_t) const override { return true; }
- std::string name() const { return "NoPadding"; }
+ std::string name() const override { return "NoPadding"; }
};
BlockCipherModePaddingMethod* get_bc_pad(const std::string& algo_spec);