diff options
author | Jack Lloyd <[email protected]> | 2016-07-01 08:50:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-07-17 10:43:41 -0400 |
commit | ee1b5c7e8513b3b97efa87720154d8ca24774eba (patch) | |
tree | f433cd4045e2bc7289b4f23f6aa0ec921068a33d /src/cli/speed.cpp | |
parent | 4db84ab7e8a4328bca04966f77cae47712bbf427 (diff) |
HMAC_RNG not always in build
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r-- | src/cli/speed.cpp | 9 |
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 |