diff options
author | Tomasz Frydrych <[email protected]> | 2017-05-01 15:03:52 +0200 |
---|---|---|
committer | Tomasz Frydrych <[email protected]> | 2017-05-01 15:03:52 +0200 |
commit | 87c0fae706140b0a2a7a3fda9dd813474172fa2a (patch) | |
tree | 28930efab4d290dcebb89666d46050edd06703fd /src/tests/test_ecgdsa.cpp | |
parent | 29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff) |
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_ecgdsa.cpp')
-rw-r--r-- | src/tests/test_ecgdsa.cpp | 28 |
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); |