aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecgdsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-31 20:32:32 -0400
committerJack Lloyd <[email protected]>2016-10-31 20:32:32 -0400
commitcb6fa09b205c53d32e17a5785a4a1af5a9eaf7dd (patch)
treeac1b1dcc456ceb677f16f5f5a53475cc6def79e8 /src/tests/test_ecgdsa.cpp
parent73c2605f50e6192bf6cb560c51d32bc53b4c5597 (diff)
Test PK key creation via create_private_key API
Diffstat (limited to 'src/tests/test_ecgdsa.cpp')
-rw-r--r--src/tests/test_ecgdsa.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/tests/test_ecgdsa.cpp b/src/tests/test_ecgdsa.cpp
index e566bf045..08c3777b4 100644
--- a/src/tests/test_ecgdsa.cpp
+++ b/src/tests/test_ecgdsa.cpp
@@ -58,14 +58,7 @@ class ECGDSA_Keygen_Tests : public PK_Key_Generation_Test
{
public:
std::vector<std::string> keygen_params() const override { return { "secp256r1", "secp384r1", "secp521r1" }; }
-
- std::unique_ptr<Botan::Private_Key> make_key(Botan::RandomNumberGenerator& rng,
- const std::string& param) const override
- {
- Botan::EC_Group group(param);
- std::unique_ptr<Botan::Private_Key> key(new Botan::ECGDSA_PrivateKey(rng, group));
- return key;
- }
+ std::string algo_name() const override { return "ECGDSA"; }
};
BOTAN_REGISTER_TEST("ecgdsa_sign", ECGDSA_Signature_KAT_Tests);