aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-13 20:53:31 +0000
committerlloyd <[email protected]>2010-09-13 20:53:31 +0000
commit4fe8a34f1869805d9115f39cad53d1fd7f7eb6c4 (patch)
tree2ff6c30d1a7d5f2244b6f1b459a5ea10b6d43fe0 /checks/dolook.cpp
parent36bfef27271eadffefbc6891a9d7fa7eed7b1e10 (diff)
Remove more uses of vector to pointer implicit conversions
Diffstat (limited to 'checks/dolook.cpp')
-rw-r--r--checks/dolook.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp
index 92f7381c2..09c3d5987 100644
--- a/checks/dolook.cpp
+++ b/checks/dolook.cpp
@@ -115,9 +115,7 @@ class KDF_Filter : public Filter
{ secret.append(in, len); }
void end_msg()
{
- SymmetricKey x = kdf->derive_key(outlen,
- secret, secret.size(),
- salt, salt.size());
+ SymmetricKey x = kdf->derive_key(outlen, secret, salt);
send(x.bits_of(), x.length());
}
KDF_Filter(KDF* algo, const SymmetricKey& s, u32bit o)
@@ -154,9 +152,7 @@ void RNG_Filter::write(const byte[], u32bit length)
{
if(length)
{
- SecureVector<byte> out(length);
- rng->randomize(out, out.size());
- send(out);
+ send(rng->random_vec(length));
}
}