aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_elg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_elg.cpp')
-rw-r--r--src/tests/test_elg.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/tests/test_elg.cpp b/src/tests/test_elg.cpp
index 9c7b95ff7..f740be7f6 100644
--- a/src/tests/test_elg.cpp
+++ b/src/tests/test_elg.cpp
@@ -44,15 +44,7 @@ class ElGamal_Keygen_Tests : public PK_Key_Generation_Test
{
public:
std::vector<std::string> keygen_params() const override { return { "modp/ietf/1024", "modp/ietf/2048" }; }
-
- std::unique_ptr<Botan::Private_Key> make_key(Botan::RandomNumberGenerator& rng,
- const std::string& param) const override
- {
- Botan::DL_Group group(param);
- std::unique_ptr<Botan::Private_Key> key(new Botan::ElGamal_PrivateKey(rng, group));
- return key;
- }
-
+ std::string algo_name() const override { return "ElGamal"; }
};
BOTAN_REGISTER_TEST("elgamal_encrypt", ElGamal_KAT_Tests);