aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss/xmss_parameters.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-25 17:07:12 -0500
committerJack Lloyd <[email protected]>2016-11-25 17:07:12 -0500
commit4a849b7ebb329630ef03d5b3961d57c5f76cfa0b (patch)
tree88fb27dc826dfe9fdd3b40a5b23dc4b32539aa18 /src/lib/pubkey/xmss/xmss_parameters.cpp
parente8568ba5a45c7383709b27e2fa0443b938bf6ea9 (diff)
Correct XMSS crash when a hash was disabled
Require SHA-256 in XMSS since that is mandatory for the index registry.
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_parameters.cpp')
-rw-r--r--src/lib/pubkey/xmss/xmss_parameters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_parameters.cpp b/src/lib/pubkey/xmss/xmss_parameters.cpp
index c55b25a27..cc4d923dd 100644
--- a/src/lib/pubkey/xmss/xmss_parameters.cpp
+++ b/src/lib/pubkey/xmss/xmss_parameters.cpp
@@ -43,7 +43,7 @@ XMSS_Parameters::xmss_algorithm_t XMSS_Parameters::xmss_id_from_string(const std
return XMSS_SHAKE256_W16_H16;
if(param_set == "XMSS_SHAKE256_W16_H20")
return XMSS_SHAKE256_W16_H20;
- throw Invalid_Argument("Unknown XMSS algorithm param '" + param_set + "'");
+ throw Lookup_Error("Unknown XMSS algorithm param '" + param_set + "'");
}
XMSS_Parameters::XMSS_Parameters(const std::string& param_set)