aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli/speed.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 1fc0d7343..f1ff29af0 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -427,10 +427,15 @@ class Speed final : public Command
#if defined(BOTAN_HAS_HMAC_DRBG)
for(std::string hash : { "SHA-256", "SHA-384", "SHA-512" })
{
- Botan::HMAC_DRBG hmac_drbg(hash);
+ Botan::HMAC_DRBG hmac_drbg(hash, 0);
bench_rng(hmac_drbg, hmac_drbg.name(), msec, buf_size);
+ }
+#endif
- Botan::HMAC_RNG hmac_rng(hash);
+#if defined(BOTAN_HAS_HMAC_RNG)
+ for(std::string hash : { "SHA-256", "SHA-384", "SHA-512" })
+ {
+ Botan::HMAC_RNG hmac_rng(hash, 0);
bench_rng(hmac_rng, hmac_rng.name(), msec, buf_size);
}
#endif