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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp
index ff7326336..6abdc66ce 100644
--- a/src/rng/hmac_rng/hmac_rng.cpp
+++ b/src/rng/hmac_rng/hmac_rng.cpp
@@ -20,11 +20,11 @@ void hmac_prf(MessageAuthenticationCode* prf,
u32bit& counter,
const std::string& label)
{
- prf->update(K, K.size());
+ prf->update(K);
prf->update(label);
for(u32bit i = 0; i != 4; ++i)
prf->update(get_byte(i, counter));
- prf->final(K);
+ prf->final(&K[0]);
++counter;
}
@@ -104,7 +104,7 @@ void HMAC_RNG::reseed(u32bit poll_bits)
// Now generate a new PRF output to use as the XTS extractor salt
hmac_prf(prf, K, counter, "xts");
- extractor->set_key(K, K.size());
+ extractor->set_key(K);
// Reset state
zeroise(K);