diff options
author | lloyd <[email protected]> | 2009-01-31 10:50:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-01-31 10:50:19 +0000 |
commit | 0a9152898efe593bb96a619caf9d74f0bc7f75e4 (patch) | |
tree | dcc3810882b88dabab42613ba7b5e7cf8f89ffc6 /src/rng | |
parent | 716176904747020267858f4b8b2c04675d76c873 (diff) |
Make Entropy_Accumulator a pure virtual to allow other accumulation
techniques, with the one using BufferedComputation being the new
subclass with the charming name Entropy_Accumulator_BufferedComputation.
Diffstat (limited to 'src/rng')
-rw-r--r-- | src/rng/hmac_rng/hmac_rng.cpp | 2 | ||||
-rw-r--r-- | src/rng/randpool/randpool.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp index ffdfdc60d..ede2b5a08 100644 --- a/src/rng/hmac_rng/hmac_rng.cpp +++ b/src/rng/hmac_rng/hmac_rng.cpp @@ -69,7 +69,7 @@ void HMAC_RNG::reseed_with_input(u32bit poll_bits, feedback of the current PRK value, into the extractor function. */ - Entropy_Accumulator accum(*extractor, poll_bits); + Entropy_Accumulator_BufferedComputation accum(*extractor, poll_bits); for(u32bit i = 0; i < entropy_sources.size(); ++i) { diff --git a/src/rng/randpool/randpool.cpp b/src/rng/randpool/randpool.cpp index 41a8ca23a..98b088808 100644 --- a/src/rng/randpool/randpool.cpp +++ b/src/rng/randpool/randpool.cpp @@ -101,7 +101,7 @@ void Randpool::mix_pool() */ void Randpool::reseed(u32bit poll_bits) { - Entropy_Accumulator accum(*mac, poll_bits); + Entropy_Accumulator_BufferedComputation accum(*mac, poll_bits); for(u32bit i = 0; i != entropy_sources.size(); ++i) { |