aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dsa
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-07-30 19:15:22 +0200
committerDaniel Seither <[email protected]>2015-07-30 19:15:22 +0200
commitf2edce7bf7fd2132e1a153093df4d47d5f57efcc (patch)
tree596f618d70b8be96922e662f17d91c6c996d835e /src/lib/pubkey/dsa
parente44e6b50e98628e385f59de4b61b4b4733fc1816 (diff)
pubkey: Add missing overrides
Diffstat (limited to 'src/lib/pubkey/dsa')
-rw-r--r--src/lib/pubkey/dsa/dsa.cpp6
-rw-r--r--src/lib/pubkey/dsa/dsa.h12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/pubkey/dsa/dsa.cpp b/src/lib/pubkey/dsa/dsa.cpp
index 90cc18fdc..ec0830533 100644
--- a/src/lib/pubkey/dsa/dsa.cpp
+++ b/src/lib/pubkey/dsa/dsa.cpp
@@ -148,9 +148,9 @@ class DSA_Verification_Operation : public PK_Ops::Verification_with_EMSA
mod_q = Modular_Reducer(dsa.group_q());
}
- size_t message_parts() const { return 2; }
- size_t message_part_size() const { return q.bytes(); }
- size_t max_input_bits() const { return q.bits(); }
+ size_t message_parts() const override { return 2; }
+ size_t message_part_size() const override { return q.bytes(); }
+ size_t max_input_bits() const override { return q.bits(); }
bool with_recovery() const override { return false; }
diff --git a/src/lib/pubkey/dsa/dsa.h b/src/lib/pubkey/dsa/dsa.h
index 294774bf0..2653c9229 100644
--- a/src/lib/pubkey/dsa/dsa.h
+++ b/src/lib/pubkey/dsa/dsa.h
@@ -18,12 +18,12 @@ namespace Botan {
class BOTAN_DLL DSA_PublicKey : public virtual DL_Scheme_PublicKey
{
public:
- std::string algo_name() const { return "DSA"; }
+ std::string algo_name() const override { return "DSA"; }
- DL_Group::Format group_format() const { return DL_Group::ANSI_X9_57; }
- size_t message_parts() const { return 2; }
- size_t message_part_size() const { return group_q().bytes(); }
- size_t max_input_bits() const { return group_q().bits(); }
+ DL_Group::Format group_format() const override { return DL_Group::ANSI_X9_57; }
+ size_t message_parts() const override { return 2; }
+ size_t message_part_size() const override { return group_q().bytes(); }
+ size_t max_input_bits() const override { return group_q().bits(); }
DSA_PublicKey(const AlgorithmIdentifier& alg_id,
const secure_vector<byte>& key_bits) :
@@ -51,7 +51,7 @@ class BOTAN_DLL DSA_PrivateKey : public DSA_PublicKey,
const DL_Group& group,
const BigInt& private_key = 0);
- bool check_key(RandomNumberGenerator& rng, bool strong) const;
+ bool check_key(RandomNumberGenerator& rng, bool strong) const override;
};
}