diff options
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_wots_parameters.cpp')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_wots_parameters.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/pubkey/xmss/xmss_wots_parameters.cpp b/src/lib/pubkey/xmss/xmss_wots_parameters.cpp index e5e334bf9..6aff1c8dd 100644 --- a/src/lib/pubkey/xmss/xmss_wots_parameters.cpp +++ b/src/lib/pubkey/xmss/xmss_wots_parameters.cpp @@ -22,14 +22,14 @@ namespace Botan { XMSS_WOTS_Parameters::ots_algorithm_t XMSS_WOTS_Parameters::xmss_wots_id_from_string(const std::string& param_set) { - if(param_set == "WOTSP_SHA2-256_W16") - { return WOTSP_SHA2_256_W16; } - if(param_set == "WOTSP_SHA2-512_W16") - { return WOTSP_SHA2_512_W16; } - if(param_set == "WOTSP_SHAKE128_W16") - { return WOTSP_SHAKE128_W16; } - if(param_set == "WOTSP_SHAKE256_W16") - { return WOTSP_SHAKE256_W16; } + if(param_set == "WOTSP-SHA2_256") + { return WOTSP_SHA2_256; } + if(param_set == "WOTSP-SHA2_512") + { return WOTSP_SHA2_512; } + if(param_set == "WOTSP-SHAKE_256") + { return WOTSP_SHAKE_256; } + if(param_set == "WOTSP-SHAKE_512") + { return WOTSP_SHAKE_512; } throw Invalid_Argument("Unknown XMSS-WOTS algorithm param '" + param_set + "'"); } @@ -42,35 +42,35 @@ XMSS_WOTS_Parameters::XMSS_WOTS_Parameters(ots_algorithm_t oid) { switch(oid) { - case WOTSP_SHA2_256_W16: + case WOTSP_SHA2_256: m_element_size = 32; m_w = 16; m_len = 67; - m_name = "WOTSP_SHA2-256_W16"; + m_name = "WOTSP-SHA2_256"; m_hash_name = "SHA-256"; m_strength = 256; break; - case WOTSP_SHA2_512_W16: + case WOTSP_SHA2_512: m_element_size = 64; m_w = 16; m_len = 131; - m_name = "WOTSP_SHA2-512_W16"; + m_name = "WOTSP-SHA2_512"; m_hash_name = "SHA-512"; m_strength = 512; break; - case WOTSP_SHAKE128_W16: + case WOTSP_SHAKE_256: m_element_size = 32; m_w = 16; m_len = 67; - m_name = "WOTSP_SHAKE128_W16"; + m_name = "WOTSP-SHAKE_256"; m_hash_name = "SHAKE-128(256)"; m_strength = 256; break; - case WOTSP_SHAKE256_W16: + case WOTSP_SHAKE_512: m_element_size = 64; m_w = 16; m_len = 131; - m_name = "WOTSP_SHAKE256_W16"; + m_name = "WOTSP-SHAKE_512"; m_hash_name = "SHAKE-256(512)"; m_strength = 512; break; |