aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss/xmss_parameters.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-25 16:42:53 -0500
committerJack Lloyd <[email protected]>2016-11-25 16:42:53 -0500
commitcdee866369b274151b745cb9b31b65c8207f638d (patch)
treebb2e7ad837c98e0ad95e8a30f69633879f7685d9 /src/lib/pubkey/xmss/xmss_parameters.h
parent36f260c4b97ba4b2253a3215e6c9afe35022ac04 (diff)
Make XMSS more friendly about invalid params.
Previously just throw an exception from map.at Add an XMSS keygen test, and add default params for create_private_key
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_parameters.h')
-rw-r--r--src/lib/pubkey/xmss/xmss_parameters.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/xmss/xmss_parameters.h b/src/lib/pubkey/xmss/xmss_parameters.h
index 7a83af381..1e8048217 100644
--- a/src/lib/pubkey/xmss/xmss_parameters.h
+++ b/src/lib/pubkey/xmss/xmss_parameters.h
@@ -44,6 +44,8 @@ class BOTAN_DLL XMSS_Parameters
XMSS_SHAKE256_W16_H20 = 0x0c00000c
};
+ static xmss_algorithm_t xmss_id_from_string(const std::string& algo_name);
+
XMSS_Parameters(const std::string& algo_name);
XMSS_Parameters(xmss_algorithm_t oid);
@@ -106,8 +108,6 @@ class BOTAN_DLL XMSS_Parameters
}
private:
- static const std::map<std::string, xmss_algorithm_t>
- m_oid_name_lut;
xmss_algorithm_t m_oid;
XMSS_WOTS_Parameters::ots_algorithm_t m_wots_oid;
std::string m_name;