aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/hmac_rng/hmac_rng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rng/hmac_rng/hmac_rng.cpp')
-rw-r--r--src/rng/hmac_rng/hmac_rng.cpp4
1 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 fbfa87f70..b9bd65ae1 100644
--- a/src/rng/hmac_rng/hmac_rng.cpp
+++ b/src/rng/hmac_rng/hmac_rng.cpp
@@ -107,7 +107,7 @@ void HMAC_RNG::reseed(u32bit poll_bits)
extractor->set_key(K, K.size());
// Reset state
- K.clear();
+ zeroise(K);
counter = 0;
user_input_len = 0;
@@ -147,7 +147,7 @@ void HMAC_RNG::clear()
{
extractor->clear();
prf->clear();
- K.clear();
+ zeroise(K);
counter = 0;
user_input_len = 0;
seeded = false;