aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecgdsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_ecgdsa.cpp')
-rw-r--r--src/tests/test_ecgdsa.cpp28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/tests/test_ecgdsa.cpp b/src/tests/test_ecgdsa.cpp
index e59b4dff6..25e4be0e2 100644
--- a/src/tests/test_ecgdsa.cpp
+++ b/src/tests/test_ecgdsa.cpp
@@ -9,9 +9,9 @@
#include "test_rng.h"
#if defined(BOTAN_HAS_ECGDSA)
- #include "test_pubkey.h"
- #include <botan/ecgdsa.h>
- #include <botan/oids.h>
+ #include "test_pubkey.h"
+ #include <botan/ecgdsa.h>
+ #include <botan/oids.h>
#endif
namespace Botan_Tests {
@@ -24,12 +24,14 @@ class ECGDSA_Signature_KAT_Tests : public PK_Signature_Generation_Test
{
public:
ECGDSA_Signature_KAT_Tests() : PK_Signature_Generation_Test(
- "ECGDSA",
- "pubkey/ecgdsa.vec",
- "Group,X,Hash,Msg,Nonce,Signature")
- {}
+ "ECGDSA",
+ "pubkey/ecgdsa.vec",
+ "Group,X,Hash,Msg,Nonce,Signature") {}
- bool clear_between_callbacks() const override { return false; }
+ bool clear_between_callbacks() const override
+ {
+ return false;
+ }
std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override
{
@@ -57,8 +59,14 @@ class ECGDSA_Signature_KAT_Tests : public PK_Signature_Generation_Test
class ECGDSA_Keygen_Tests : public PK_Key_Generation_Test
{
public:
- std::vector<std::string> keygen_params() const override { return { "secp256r1", "secp384r1", "secp521r1" }; }
- std::string algo_name() const override { return "ECGDSA"; }
+ std::vector<std::string> keygen_params() const override
+ {
+ return { "secp256r1", "secp384r1", "secp521r1" };
+ }
+ std::string algo_name() const override
+ {
+ return "ECGDSA";
+ }
};
BOTAN_REGISTER_TEST("ecgdsa_sign", ECGDSA_Signature_KAT_Tests);