aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rng/hmac_rng/hmac_rng.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp
index 769cdf4b2..d2419a8b5 100644
--- a/src/rng/hmac_rng/hmac_rng.cpp
+++ b/src/rng/hmac_rng/hmac_rng.cpp
@@ -24,7 +24,7 @@ void HMAC_RNG::randomize(byte out[], u32bit length)
reseed();
if(!is_seeded())
- throw PRNG_Unseeded(name());
+ throw PRNG_Unseeded(name() + " seeding attempt failed");
}
/*
@@ -176,10 +176,6 @@ void HMAC_RNG::reseed_with_input(const byte input[], u32bit input_length)
SecureVector<byte> prk = extractor->final();
prf->set_key(prk, prk.size());
- // Total gathered entropy is at most PRK bits (likely less, really,
- // since PRF will probably hash it down further)
- estimate.set_upper_bound(prk.size());
-
K.clear();
counter = 0;