diff options
Diffstat (limited to 'src/rng/hmac_rng')
-rw-r--r-- | src/rng/hmac_rng/hmac_rng.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp index f495dda4d..ffdfdc60d 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(poll_bits); + Entropy_Accumulator accum(*extractor, poll_bits); for(u32bit i = 0; i < entropy_sources.size(); ++i) { @@ -83,8 +83,6 @@ void HMAC_RNG::reseed_with_input(u32bit poll_bits, if(input_length) accum.add(input, input_length, 1); - extractor->update(accum.get_entropy_buffer()); - /* It is necessary to feed forward poll data. Otherwise, a good poll (collecting a large amount of conditional entropy) followed by a |