diff options
Diffstat (limited to 'src/tests/test_xmss.cpp')
-rw-r--r-- | src/tests/test_xmss.cpp | 31 |
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); |