diff options
author | Jack Lloyd <[email protected]> | 2017-08-03 07:38:56 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-03 10:37:02 -0400 |
commit | 6ce23f05c68f9c6b1b4742b8eb1f3068760fdd21 (patch) | |
tree | 99ba28ba5e9ef822b0fe0b4504ed71b3f82b0921 /src/lib/rng/hmac_drbg | |
parent | d1af646c365197de243c844d138f245d1dcac6ba (diff) |
Add Stateful_RNG::reset_reseed_counter
Instead of giving subclasses access to the variable directly.
Diffstat (limited to 'src/lib/rng/hmac_drbg')
-rw-r--r-- | src/lib/rng/hmac_drbg/hmac_drbg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.cpp b/src/lib/rng/hmac_drbg/hmac_drbg.cpp index 4f19b5256..a01b761d9 100644 --- a/src/lib/rng/hmac_drbg/hmac_drbg.cpp +++ b/src/lib/rng/hmac_drbg/hmac_drbg.cpp @@ -161,7 +161,7 @@ void HMAC_DRBG::add_entropy(const uint8_t input[], size_t input_len) if(8*input_len >= security_level()) { - m_reseed_counter = 1; + reset_reseed_counter(); } } |