aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha2_64/sha2_64.h
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-07-30 18:31:12 +0200
committerDaniel Seither <[email protected]>2015-07-30 18:31:12 +0200
commit6774322c9578cd4519bd7a360ee562c4d60f5307 (patch)
tree411dbd6153af46c6b7e95f4f93a75adeeffc9129 /src/lib/hash/sha2_64/sha2_64.h
parent6dd2fa4a785d8aa8700dc7448048ddaaa78b6d61 (diff)
hash: Add missing overrides
Diffstat (limited to 'src/lib/hash/sha2_64/sha2_64.h')
-rw-r--r--src/lib/hash/sha2_64/sha2_64.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/hash/sha2_64/sha2_64.h b/src/lib/hash/sha2_64/sha2_64.h
index 2956d94e8..5aae5effe 100644
--- a/src/lib/hash/sha2_64/sha2_64.h
+++ b/src/lib/hash/sha2_64/sha2_64.h
@@ -18,17 +18,17 @@ namespace Botan {
class BOTAN_DLL SHA_384 : public MDx_HashFunction
{
public:
- std::string name() const { return "SHA-384"; }
- size_t output_length() const { return 48; }
- HashFunction* clone() const { return new SHA_384; }
+ std::string name() const override { return "SHA-384"; }
+ size_t output_length() const override { return 48; }
+ HashFunction* clone() const override { return new SHA_384; }
- void clear();
+ void clear() override;
SHA_384() : MDx_HashFunction(128, true, true, 16), m_digest(8)
{ clear(); }
private:
- void compress_n(const byte[], size_t blocks);
- void copy_out(byte[]);
+ void compress_n(const byte[], size_t blocks) override;
+ void copy_out(byte[]) override;
secure_vector<u64bit> m_digest;
};
@@ -39,17 +39,17 @@ class BOTAN_DLL SHA_384 : public MDx_HashFunction
class BOTAN_DLL SHA_512 : public MDx_HashFunction
{
public:
- std::string name() const { return "SHA-512"; }
- size_t output_length() const { return 64; }
- HashFunction* clone() const { return new SHA_512; }
+ std::string name() const override { return "SHA-512"; }
+ size_t output_length() const override { return 64; }
+ HashFunction* clone() const override { return new SHA_512; }
- void clear();
+ void clear() override;
SHA_512() : MDx_HashFunction(128, true, true, 16), m_digest(8)
{ clear(); }
private:
- void compress_n(const byte[], size_t blocks);
- void copy_out(byte[]);
+ void compress_n(const byte[], size_t blocks) override;
+ void copy_out(byte[]) override;
secure_vector<u64bit> m_digest;
};
@@ -60,16 +60,16 @@ class BOTAN_DLL SHA_512 : public MDx_HashFunction
class BOTAN_DLL SHA_512_256 : public MDx_HashFunction
{
public:
- std::string name() const { return "SHA-512/256"; }
- size_t output_length() const { return 32; }
- HashFunction* clone() const { return new SHA_512_256; }
+ std::string name() const override { return "SHA-512/256"; }
+ size_t output_length() const override { return 32; }
+ HashFunction* clone() const override { return new SHA_512_256; }
- void clear();
+ void clear() override;
SHA_512_256() : MDx_HashFunction(128, true, true, 16), m_digest(8) { clear(); }
private:
- void compress_n(const byte[], size_t blocks);
- void copy_out(byte[]);
+ void compress_n(const byte[], size_t blocks) override;
+ void copy_out(byte[]) override;
secure_vector<u64bit> m_digest;
};