diff options
author | Matthias Gierlings <[email protected]> | 2016-11-11 13:02:58 +0100 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2016-11-11 15:56:33 +0100 |
commit | eb949db1a01e9f6fd71e25c89c7f015021af12e0 (patch) | |
tree | a83347201260d59347f8740ca9ef02f449ee2797 /src/lib/pubkey/xmss/xmss_signature_operation.cpp | |
parent | 8b06b4fe5fbe189c7d5250becb189bf2b87b9013 (diff) |
Implements changes from XMSS review
- Removes custom XMSS_Hash assignment operator.
- Changes mutex type used in XMSS_Index_Registryfrom std::mutex to
Botan::mutex_type, changes lock_guard accordingly.
- Removes singleton and endianess detection from XMSS_Tools, changes
XMSS_Tools::concat() to be a static method.
- XMSS/XMSS_WOTS check_key() now always returns true.
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_signature_operation.cpp')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_signature_operation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature_operation.cpp b/src/lib/pubkey/xmss/xmss_signature_operation.cpp index d223ddef0..07121db14 100644 --- a/src/lib/pubkey/xmss/xmss_signature_operation.cpp +++ b/src/lib/pubkey/xmss/xmss_signature_operation.cpp @@ -97,10 +97,10 @@ void XMSS_Signature_Operation::initialize() m_leaf_idx = m_priv_key.reserve_unused_leaf_index(); // write prefix for message hashing into buffer. - XMSS_Tools::get().concat(index_bytes, m_leaf_idx, 32); + XMSS_Tools::concat(index_bytes, m_leaf_idx, 32); m_randomness = m_hash.prf(m_priv_key.prf(), index_bytes); index_bytes.clear(); - XMSS_Tools::get().concat(index_bytes, m_leaf_idx, + XMSS_Tools::concat(index_bytes, m_leaf_idx, m_priv_key.xmss_parameters().element_size()); m_hash.h_msg_init(m_randomness, m_priv_key.root(), |