diff options
author | Jack Lloyd <[email protected]> | 2016-11-25 16:42:53 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-25 16:42:53 -0500 |
commit | cdee866369b274151b745cb9b31b65c8207f638d (patch) | |
tree | bb2e7ad837c98e0ad95e8a30f69633879f7685d9 /src/lib/pubkey/xmss/xmss_parameters.h | |
parent | 36f260c4b97ba4b2253a3215e6c9afe35022ac04 (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.h | 4 |
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; |