diff options
author | Never <[email protected]> | 2017-02-24 17:52:13 +0100 |
---|---|---|
committer | Never <[email protected]> | 2017-02-24 17:55:29 +0100 |
commit | 09d213dead4d3519bbd9aa8083e8c784a4eb9c4f (patch) | |
tree | c3776ae9291635a39088ec1a22e136aa34e76a2f /src/lib/pubkey/ec_group/ec_group.h | |
parent | 2142cf8de355a2c442922e02696ee8e26449f5e6 (diff) |
Add ec_group verify function
Diffstat (limited to 'src/lib/pubkey/ec_group/ec_group.h')
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/pubkey/ec_group/ec_group.h b/src/lib/pubkey/ec_group/ec_group.h index 15c09a54d..a2cd4d719 100644 --- a/src/lib/pubkey/ec_group/ec_group.h +++ b/src/lib/pubkey/ec_group/ec_group.h @@ -113,7 +113,14 @@ class BOTAN_DLL EC_Group * @result the OID */ std::string get_oid() const { return m_oid; } - + + /** + * Verify EC_Group domain + * @returns true if group is valid. false otherwise + */ + bool verify_group(RandomNumberGenerator& rng, + bool strong = false) const; + bool operator==(const EC_Group& other) const { return ((get_curve() == other.get_curve()) && |