diff options
-rw-r--r-- | src/lib/pubkey/xmss/xmss_tools.cpp | 5 | ||||
-rw-r--r-- | src/lib/pubkey/xmss/xmss_tools.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/pubkey/xmss/xmss_tools.cpp b/src/lib/pubkey/xmss/xmss_tools.cpp index 9b71ab36c..f4f762aeb 100644 --- a/src/lib/pubkey/xmss/xmss_tools.cpp +++ b/src/lib/pubkey/xmss/xmss_tools.cpp @@ -33,12 +33,13 @@ size_t XMSS_Tools::bench_threads() for(const auto& cc : concurrency) { - AutoSeeded_RNG rng; std::vector<XMSS_Hash> hash(std::thread::hardware_concurrency(), XMSS_Hash("SHA-256")); + + const std::vector<uint8_t> buffer(hash[0].output_length()); std::vector<secure_vector<uint8_t>> data( std::thread::hardware_concurrency(), - rng.random_vec(hash[0].output_length())); + secure_vector<uint8_t>(hash[0].output_length())); auto start = std::chrono::high_resolution_clock::now(); for(size_t i = 0; i < cc; ++i) { diff --git a/src/lib/pubkey/xmss/xmss_tools.h b/src/lib/pubkey/xmss/xmss_tools.h index e9f877eae..65c4a83a7 100644 --- a/src/lib/pubkey/xmss/xmss_tools.h +++ b/src/lib/pubkey/xmss/xmss_tools.h @@ -12,11 +12,11 @@ #include <botan/secmem.h> #include <iterator> #include <type_traits> + #if defined(BOTAN_TARGET_OS_HAS_THREADS) #include <thread> #include <chrono> #include <botan/xmss_hash.h> - #include <botan/auto_rng.h> #endif namespace Botan { |