aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecdh.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_ecdh.cpp
parent29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff)
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_ecdh.cpp')
-rw-r--r--src/tests/test_ecdh.cpp30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/tests/test_ecdh.cpp b/src/tests/test_ecdh.cpp
index 270e50db3..99c8665f2 100644
--- a/src/tests/test_ecdh.cpp
+++ b/src/tests/test_ecdh.cpp
@@ -7,9 +7,9 @@
#include "tests.h"
#if defined(BOTAN_HAS_ECDH)
- #include "test_pubkey.h"
- #include <botan/pubkey.h>
- #include <botan/ecdh.h>
+ #include "test_pubkey.h"
+ #include <botan/pubkey.h>
+ #include <botan/ecdh.h>
#endif
namespace Botan_Tests {
@@ -21,17 +21,20 @@ namespace {
class ECDH_KAT_Tests : public PK_Key_Agreement_Test
{
public:
- ECDH_KAT_Tests() : PK_Key_Agreement_Test(
- "ECDH",
- "pubkey/ecdh.vec",
- "Group,Secret,CounterKey,K",
- "KDF")
- {}
+ ECDH_KAT_Tests()
+ : PK_Key_Agreement_Test(
+ "ECDH",
+ "pubkey/ecdh.vec",
+ "Group,Secret,CounterKey,K",
+ "KDF") {}
- std::string default_kdf(const VarMap&) const override { return "Raw"; }
+ std::string default_kdf(const VarMap&) const override
+ {
+ return "Raw";
+ }
std::unique_ptr<Botan::Private_Key> load_our_key(const std::string& group_id,
- const VarMap& vars) override
+ const VarMap& vars) override
{
Botan::EC_Group group(group_id);
const Botan::BigInt secret = get_req_bn(vars, "Secret");
@@ -53,7 +56,10 @@ class ECDH_Keygen_Tests : public PK_Key_Generation_Test
return { "secp256r1", "secp384r1", "secp521r1",
"brainpool256r1", "brainpool384r1", "brainpool512r1", "frp256v1" };
}
- std::string algo_name() const override { return "ECDH"; }
+ std::string algo_name() const override
+ {
+ return "ECDH";
+ }
};