aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-08-01 19:01:46 -0400
committerJack Lloyd <[email protected]>2019-08-01 19:01:46 -0400
commit0af0aa557163fc8ebe88fd6c2df909df583bdcc0 (patch)
tree717089939c9eb4e4f8af7568312b9397a47ab2b6 /src/tests/unit_ecc.cpp
parent76e7e926847ac0c68c9dc8787bafe5559ad51ac8 (diff)
Add gost_512A param
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index 28b2fadd1..08d08b516 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -9,16 +9,17 @@
#include "tests.h"
#if defined(BOTAN_HAS_ECC_GROUP)
-#include <botan/bigint.h>
-#include <botan/numthry.h>
-#include <botan/curve_nistp.h>
-#include <botan/pk_keys.h>
-#include <botan/point_gfp.h>
-#include <botan/ec_group.h>
-#include <botan/reducer.h>
-#include <botan/hex.h>
-#include <botan/data_src.h>
-#include <botan/x509_key.h>
+ #include <botan/bigint.h>
+ #include <botan/numthry.h>
+ #include <botan/curve_nistp.h>
+ #include <botan/pk_keys.h>
+ #include <botan/point_gfp.h>
+ #include <botan/ec_group.h>
+ #include <botan/reducer.h>
+ #include <botan/hex.h>
+ #include <botan/data_src.h>
+ #include <botan/x509_key.h>
+ #include <botan/oids.h>
#endif
namespace Botan_Tests {
@@ -273,7 +274,9 @@ class EC_Group_Tests : public Test
{
Test::Result result("EC_Group " + group_name);
- const Botan::EC_Group group(group_name);
+ const Botan::OID oid = Botan::OIDS::lookup(group_name);
+
+ const Botan::EC_Group group(oid);
result.confirm("EC_Group is known", !group.get_curve_oid().empty());
result.confirm("EC_Group is considered valid", group.verify_group(Test::rng(), true));