aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-10 09:46:30 -0500
committerJack Lloyd <[email protected]>2018-03-10 10:27:12 -0500
commit30de6dc7179ca21e3cbca55b48b23bcac0f45f25 (patch)
treed47b733691c4a2156b3f74dd30d9c0871c7fd1be /src/tests
parente0c2aeb7f331182d055a737da7cef3ffe8545c7b (diff)
Lookup EC curves via name instead of OID
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/unit_ecdsa.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/unit_ecdsa.cpp b/src/tests/unit_ecdsa.cpp
index 081b686e6..5880bda59 100644
--- a/src/tests/unit_ecdsa.cpp
+++ b/src/tests/unit_ecdsa.cpp
@@ -122,7 +122,7 @@ Test::Result test_sign_then_ver()
{
Test::Result result("ECDSA Unit");
- Botan::EC_Group dom_pars(Botan::OID("1.3.132.0.8"));
+ Botan::EC_Group dom_pars("secp160r1");
Botan::ECDSA_PrivateKey ecdsa(Test::rng(), dom_pars);
Botan::PK_Signer signer(ecdsa, Test::rng(), "EMSA1(SHA-256)");
@@ -145,7 +145,7 @@ Test::Result test_ec_sign()
try
{
- Botan::EC_Group dom_pars(Botan::OID("1.3.132.0.8"));
+ Botan::EC_Group dom_pars("secp160r1");
Botan::ECDSA_PrivateKey priv_key(Test::rng(), dom_pars);
Botan::PK_Signer signer(priv_key, Test::rng(), "EMSA1(SHA-224)");
Botan::PK_Verifier verifier(priv_key, "EMSA1(SHA-224)");
@@ -199,7 +199,7 @@ Test::Result test_ecdsa_create_save_load()
try
{
- Botan::EC_Group dom_pars(Botan::OID("1.3.132.0.8"));
+ Botan::EC_Group dom_pars("secp160r1");
Botan::ECDSA_PrivateKey key(Test::rng(), dom_pars);
Botan::PK_Signer signer(key, Test::rng(), "EMSA1(SHA-256)");