aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecdh.cpp
diff options
context:
space:
mode:
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";
+ }
};