diff options
author | Matthias Gierlings <[email protected]> | 2017-10-09 23:23:28 +0200 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2017-11-21 21:03:16 +0100 |
commit | 306a665f07e21eefa19f1f9c047ed9e5bd9ba224 (patch) | |
tree | e799a0b9d41ad4d853f1988f588132e5de86b914 /src/lib/pubkey/xmss/xmss_signature.cpp | |
parent | f1b1c6e3506fea734bc41cdb7794bf26666d293a (diff) |
Implements multithreading support for XMSS
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_signature.cpp')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_signature.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature.cpp b/src/lib/pubkey/xmss/xmss_signature.cpp index 8dbb17909..c5d6a3d8b 100644 --- a/src/lib/pubkey/xmss/xmss_signature.cpp +++ b/src/lib/pubkey/xmss/xmss_signature.cpp @@ -16,13 +16,13 @@ XMSS_Signature::XMSS_Signature(XMSS_Parameters::xmss_algorithm_t oid, { BOTAN_ASSERT(sizeof(size_t) >= std::ceil(static_cast<float>( (XMSS_Parameters(oid)).tree_height()) / 8.f), - "System type \"size_t\" not big enough to support" - " leaf index."); + "System type \"size_t\" not big enough to support" + " leaf index."); XMSS_Parameters xmss_params(oid); uint64_t leaf_idx = 0; for(size_t i = 0; i < 8; i++) - leaf_idx = ((leaf_idx << 8) | raw_sig[i]); + { leaf_idx = ((leaf_idx << 8) | raw_sig[i]); } if(leaf_idx >= (1ull << (xmss_params.tree_height() - 1))) { @@ -71,7 +71,7 @@ secure_vector<uint8_t> XMSS_Signature::bytes() const static_cast<uint8_t>(static_cast<uint64_t>(m_leaf_idx) >> 24U), static_cast<uint8_t>(static_cast<uint64_t>(m_leaf_idx) >> 16U), static_cast<uint8_t>(static_cast<uint64_t>(m_leaf_idx) >> 8U), - static_cast<uint8_t>(static_cast<uint64_t>(m_leaf_idx) ) + static_cast<uint8_t>(static_cast<uint64_t>(m_leaf_idx)) }; std::copy(m_randomness.begin(), |