aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-24 21:52:20 -0500
committerJack Lloyd <[email protected]>2016-12-24 21:52:20 -0500
commit5f1c0b749fec6b5fb73a07c26916726e8640c5db (patch)
tree1d65b30386b9de8d49089557f1442b9557d8f832 /src
parentb7111d7876287da71ec78463da369b2746cb0f9f (diff)
Fix XMSS speed command
Diffstat (limited to 'src')
-rw-r--r--src/cli/speed.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index cd01f9180..d1859d612 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -1187,10 +1187,12 @@ class Speed final : public Command
void bench_xmss(const std::string& provider,
std::chrono::milliseconds msec)
{
+ // H16 and H20 signatures take an hour or more to generate
std::vector<std::string> xmss_params{
- "XMSS_SHA2-512_W16_H10",
- "XMSS_SHA2-512_W16_H16",
- "XMSS_SHA2-512_W16_H20",
+ "XMSS_SHA2-256_W16_H10",
+ "XMSS_SHA2-256_W16_H10",
+ "XMSS_SHAKE128_W16_H10",
+ "XMSS_SHAKE256_W16_H10",
};
for(std::string params : xmss_params)
@@ -1198,7 +1200,7 @@ class Speed final : public Command
Timer keygen_timer(params, provider, "keygen");
std::unique_ptr<Botan::Private_Key> key(keygen_timer.run([&] {
- return new Botan::XMSS_PrivateKey(Botan::XMSS_Parameters::XMSS_SHA2_256_W16_H10, rng());
+ return new Botan::XMSS_PrivateKey(Botan::XMSS_Parameters::xmss_id_from_string(params), rng());
}));
output() << Timer::result_string_ops(keygen_timer);