diff options
Diffstat (limited to 'checks')
-rw-r--r-- | checks/dolook.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp index 28ac60c1b..aa2d58e1f 100644 --- a/checks/dolook.cpp +++ b/checks/dolook.cpp @@ -60,9 +60,9 @@ class S2K_Filter : public Filter { passphrase += std::string(reinterpret_cast<const char*>(in), len); } void end_msg() { - s2k->change_salt(salt, salt.size()); - s2k->set_iterations(iterations); - SymmetricKey x = s2k->derive_key(outlen, passphrase); + SymmetricKey x = s2k->derive_key(outlen, passphrase, + &salt[0], salt.size(), + iterations); send(x.bits_of()); } S2K_Filter(S2K* algo, const SymmetricKey& s, u32bit o, u32bit i) |