aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/dolook2.cpp')
-rw-r--r--checks/dolook2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/checks/dolook2.cpp b/checks/dolook2.cpp
index ed579ad67..708d5d2ef 100644
--- a/checks/dolook2.cpp
+++ b/checks/dolook2.cpp
@@ -135,7 +135,8 @@ Filter* lookup_rng(const std::string& algname,
// defaults, so benchmark reflects real-world performance (maybe)
if(!prng && (algname == "Randpool" || algname == "X9.31-RNG"))
{
- Randpool* randpool = new Randpool("AES-256", "HMAC(SHA-256)");
+ Randpool* randpool = new Randpool(get_block_cipher("AES-256"),
+ get_mac("HMAC(SHA-256)"));
randpool->add_entropy(reinterpret_cast<const byte*>(key.c_str()),
key.length());