aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/hmac_rng
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-06 19:38:37 +0000
committerlloyd <[email protected]>2008-11-06 19:38:37 +0000
commitd14f9d5d90ece23f29d6599a7223dada115ac86e (patch)
tree4e8e754b97e2d7b5228a2b836362384bc8fc6d81 /src/rng/hmac_rng
parentbf7f64fae0d14cc175732d7dc69f71f47edc7c41 (diff)
Disable final upper bound limit since the min takes care of it
Diffstat (limited to 'src/rng/hmac_rng')
-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;