aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/des/des.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-07-31 11:09:24 -0400
committerJack Lloyd <[email protected]>2015-07-31 11:09:24 -0400
commit8e19ecf11c2c50b5a2d6642477d729091409fec8 (patch)
treed87cff14d376f69f1a7ea0d9e1679385e195623a /src/lib/block/des/des.h
parent4944797ede915a606c6d5bd0e5b0a0b8f21b8eca (diff)
parentc37ebd2d0bb9ad6d2cf6d4541a1de523b584b36e (diff)
Merge pull request #231 from tiwoc/add-override
Add override specifiers
Diffstat (limited to 'src/lib/block/des/des.h')
-rw-r--r--src/lib/block/des/des.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/block/des/des.h b/src/lib/block/des/des.h
index aa201e560..1a2fdc5c9 100644
--- a/src/lib/block/des/des.h
+++ b/src/lib/block/des/des.h
@@ -18,14 +18,14 @@ namespace Botan {
class BOTAN_DLL DES : public Block_Cipher_Fixed_Params<8, 8>
{
public:
- void encrypt_n(const byte in[], byte out[], size_t blocks) const;
- void decrypt_n(const byte in[], byte out[], size_t blocks) const;
+ void encrypt_n(const byte in[], byte out[], size_t blocks) const override;
+ void decrypt_n(const byte in[], byte out[], size_t blocks) const override;
- void clear();
- std::string name() const { return "DES"; }
- BlockCipher* clone() const { return new DES; }
+ void clear() override;
+ std::string name() const override { return "DES"; }
+ BlockCipher* clone() const override { return new DES; }
private:
- void key_schedule(const byte[], size_t);
+ void key_schedule(const byte[], size_t) override;
secure_vector<u32bit> round_key;
};
@@ -36,14 +36,14 @@ class BOTAN_DLL DES : public Block_Cipher_Fixed_Params<8, 8>
class BOTAN_DLL TripleDES : public Block_Cipher_Fixed_Params<8, 16, 24, 8>
{
public:
- void encrypt_n(const byte in[], byte out[], size_t blocks) const;
- void decrypt_n(const byte in[], byte out[], size_t blocks) const;
+ void encrypt_n(const byte in[], byte out[], size_t blocks) const override;
+ void decrypt_n(const byte in[], byte out[], size_t blocks) const override;
- void clear();
- std::string name() const { return "TripleDES"; }
- BlockCipher* clone() const { return new TripleDES; }
+ void clear() override;
+ std::string name() const override { return "TripleDES"; }
+ BlockCipher* clone() const override { return new TripleDES; }
private:
- void key_schedule(const byte[], size_t);
+ void key_schedule(const byte[], size_t) override;
secure_vector<u32bit> round_key;
};