diff options
author | lloyd <[email protected]> | 2010-09-15 13:44:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-15 13:44:42 +0000 |
commit | 180c5358cb31e9c003cada3705bb30cf01732878 (patch) | |
tree | 951038dfaf2c33bcee5e27c4b1d2980eb35494a3 /checks/dolook.cpp | |
parent | a9d0f37596e5413cae45f32740738c5c68abcce1 (diff) |
Update all uses of MemoryRegion::append to use either push_back or operator+=
Diffstat (limited to 'checks/dolook.cpp')
-rw-r--r-- | checks/dolook.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp index 09c3d5987..a20268332 100644 --- a/checks/dolook.cpp +++ b/checks/dolook.cpp @@ -112,12 +112,14 @@ class KDF_Filter : public Filter std::string name() const { return "KDF_Filter"; } void write(const byte in[], u32bit len) - { secret.append(in, len); } + { secret += std::make_pair(in, len); } + void end_msg() { SymmetricKey x = kdf->derive_key(outlen, secret, salt); send(x.bits_of(), x.length()); } + KDF_Filter(KDF* algo, const SymmetricKey& s, u32bit o) { kdf = algo; |