aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_xmss.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_xmss.cpp
parent29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff)
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_xmss.cpp')
-rw-r--r--src/tests/test_xmss.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/tests/test_xmss.cpp b/src/tests/test_xmss.cpp
index da58057e2..5e3b7bab6 100644
--- a/src/tests/test_xmss.cpp
+++ b/src/tests/test_xmss.cpp
@@ -8,8 +8,8 @@
#include "tests.h"
#if defined(BOTAN_HAS_XMSS)
- #include <botan/xmss.h>
- #include "test_pubkey.h"
+ #include <botan/xmss.h>
+ #include "test_pubkey.h"
#endif
namespace Botan_Tests {
@@ -21,11 +21,11 @@ namespace {
class XMSS_Signature_Tests : public PK_Signature_Generation_Test
{
public:
- XMSS_Signature_Tests() : PK_Signature_Generation_Test(
- "XMSS",
- "pubkey/xmss_sig.vec",
- "Params,Msg,PrivateKey,Signature")
- {}
+ XMSS_Signature_Tests()
+ : PK_Signature_Generation_Test(
+ "XMSS",
+ "pubkey/xmss_sig.vec",
+ "Params,Msg,PrivateKey,Signature") {}
bool skip_this_test(const std::string&,
const VarMap& vars) override
@@ -35,7 +35,9 @@ class XMSS_Signature_Tests : public PK_Signature_Generation_Test
const std::string params = get_req_str(vars, "Params");
if(params == "SHAKE128_W16_H10")
+ {
return false;
+ }
return true;
}
@@ -61,11 +63,11 @@ class XMSS_Signature_Tests : public PK_Signature_Generation_Test
class XMSS_Signature_Verify_Tests : public PK_Signature_Verification_Test
{
public:
- XMSS_Signature_Verify_Tests() : PK_Signature_Verification_Test(
- "XMSS",
- "pubkey/xmss_verify.vec",
- "Params,Msg,PublicKey,Signature")
- {}
+ XMSS_Signature_Verify_Tests()
+ : PK_Signature_Verification_Test(
+ "XMSS",
+ "pubkey/xmss_verify.vec",
+ "Params,Msg,PublicKey,Signature") {}
std::string default_padding(const VarMap& vars) const override
{
@@ -87,7 +89,10 @@ class XMSS_Keygen_Tests : public PK_Key_Generation_Test
{
return { "XMSS_SHA2-256_W16_H10" };
}
- std::string algo_name() const override { return "XMSS"; }
+ std::string algo_name() const override
+ {
+ return "XMSS";
+ }
};
BOTAN_REGISTER_TEST("xmss_sign", XMSS_Signature_Tests);