From 8ce4a125a6eaf012821852ce629ead2466a2fde8 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 22 Mar 2014 19:16:24 +0000 Subject: Simpify HMAC_RNG reseeding process. Actually update HMAC_DRBG reseed counter. --- src/lib/rng/hmac_drbg/hmac_drbg.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/rng/hmac_drbg') diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.cpp b/src/lib/rng/hmac_drbg/hmac_drbg.cpp index 96bd791ee..03b617af3 100644 --- a/src/lib/rng/hmac_drbg/hmac_drbg.cpp +++ b/src/lib/rng/hmac_drbg/hmac_drbg.cpp @@ -38,6 +38,8 @@ void HMAC_DRBG::randomize(byte out[], size_t length) out += to_copy; } + m_reseed_counter += length; + update(nullptr, 0); // additional_data is always empty } -- cgit v1.2.3