aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecdsa.cpp
diff options
context:
space:
mode:
authorTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
committerTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
commit87c0fae706140b0a2a7a3fda9dd813474172fa2a (patch)
tree28930efab4d290dcebb89666d46050edd06703fd /src/tests/test_ecdsa.cpp
parent29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff)
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_ecdsa.cpp')
-rw-r--r--src/tests/test_ecdsa.cpp37
1 files changed, 24 insertions, 13 deletions
diff --git a/src/tests/test_ecdsa.cpp b/src/tests/test_ecdsa.cpp
index 148abaacc..73c353b3c 100644
--- a/src/tests/test_ecdsa.cpp
+++ b/src/tests/test_ecdsa.cpp
@@ -10,9 +10,9 @@
#include "test_rng.h"
#if defined(BOTAN_HAS_ECDSA)
- #include "test_pubkey.h"
- #include <botan/ecdsa.h>
- #include <botan/oids.h>
+ #include "test_pubkey.h"
+ #include <botan/ecdsa.h>
+ #include <botan/oids.h>
#endif
namespace Botan_Tests {
@@ -25,17 +25,19 @@ class ECDSA_Signature_KAT_Tests : public PK_Signature_Generation_Test
{
public:
ECDSA_Signature_KAT_Tests() : PK_Signature_Generation_Test(
- "ECDSA",
+ "ECDSA",
#if defined(BOTAN_HAS_RFC6979_GENERATOR)
- "pubkey/ecdsa_rfc6979.vec",
- "Group,X,Hash,Msg,Signature")
+ "pubkey/ecdsa_rfc6979.vec",
+ "Group,X,Hash,Msg,Signature") {}
#else
- "pubkey/ecdsa_prob.vec",
- "Group,X,Hash,Msg,Nonce,Signature")
+ "pubkey/ecdsa_prob.vec",
+ "Group,X,Hash,Msg,Nonce,Signature") {}
#endif
- {}
- 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
{
@@ -65,8 +67,14 @@ class ECDSA_Signature_KAT_Tests : public PK_Signature_Generation_Test
class ECDSA_Keygen_Tests : public PK_Key_Generation_Test
{
public:
- std::vector<std::string> keygen_params() const override { return { "secp256r1", "secp384r1", "secp521r1", "frp256v1" }; }
- std::string algo_name() const override { return "ECDSA"; }
+ std::vector<std::string> keygen_params() const override
+ {
+ return { "secp256r1", "secp384r1", "secp521r1", "frp256v1" };
+ }
+ std::string algo_name() const override
+ {
+ return "ECDSA";
+ }
};
class ECDSA_Invalid_Key_Tests : public Text_Based_Test
@@ -75,7 +83,10 @@ class ECDSA_Invalid_Key_Tests : public Text_Based_Test
ECDSA_Invalid_Key_Tests() :
Text_Based_Test("pubkey/ecdsa_invalid.vec", "Group,InvalidKeyX,InvalidKeyY") {}
- bool clear_between_callbacks() const override { return false; }
+ bool clear_between_callbacks() const override
+ {
+ return false;
+ }
Test::Result run_one_test(const std::string&, const VarMap& vars) override
{