diff options
author | Jack Lloyd <[email protected]> | 2021-04-07 10:43:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-07 10:43:06 -0400 |
commit | 342833cfef6e5edb85ca9f21073ce6929b2488e0 (patch) | |
tree | 539361993cd9947c7e06605d8b56a73c381c2348 | |
parent | 13f953cd7f09fb4715517afe33ab3b32d41129bd (diff) |
Avoid clone in xmss_hash
-rw-r--r-- | src/lib/pubkey/xmss/xmss_hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_hash.cpp b/src/lib/pubkey/xmss/xmss_hash.cpp index cd714873c..8e4de06fd 100644 --- a/src/lib/pubkey/xmss/xmss_hash.cpp +++ b/src/lib/pubkey/xmss/xmss_hash.cpp @@ -29,7 +29,7 @@ XMSS_Hash::XMSS_Hash(const std::string& h_func_name) : BOTAN_ASSERT(m_output_length > 0, "Hash output length of zero is invalid."); m_zero_padding.resize(m_output_length - 1); - m_msg_hash.reset(m_hash->clone()); + m_msg_hash = m_hash->new_object(); } void |