aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/hmac_rng
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-14 02:05:05 +0000
committerlloyd <[email protected]>2010-09-14 02:05:05 +0000
commit77a33b0c16880884cc0326e92c0c30d0e8444a91 (patch)
treedf2d917b312abb79c8654558399521366dbb2d14 /src/rng/hmac_rng
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/rng/hmac_rng')
-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);