aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 20:32:36 +0000
committerlloyd <[email protected]>2012-05-18 20:32:36 +0000
commitc691561f3198f481c13457433efbccc1c9fcd898 (patch)
treea45ea2c5a30e0cb009fbcb68a61ef39332ff790c /checks/dolook.cpp
parentd76700f01c7ecac5633edf75f8d7408b46c5dbac (diff)
Fairly huge update that replaces the old secmem types with std::vector
using a custom allocator. Currently our allocator just does new/delete with a memset before deletion, and the mmap and mlock allocators have been removed.
Diffstat (limited to 'checks/dolook.cpp')
-rw-r--r--checks/dolook.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp
index a8e08a96b..20e260f64 100644
--- a/checks/dolook.cpp
+++ b/checks/dolook.cpp
@@ -83,14 +83,14 @@ class PBKDF_Filter : public Filter
pbkdf = algo;
outlen = o;
iterations = i;
- salt = s.bits_of();
+ salt = unlock(s.bits_of());
}
~PBKDF_Filter() { delete pbkdf; }
private:
std::string passphrase;
PBKDF* pbkdf;
- SecureVector<byte> salt;
+ std::vector<byte> salt;
u32bit outlen, iterations;
};
@@ -126,12 +126,12 @@ class KDF_Filter : public Filter
{
kdf = algo;
outlen = o;
- salt = s.bits_of();
+ salt = unlock(s.bits_of());
}
~KDF_Filter() { delete kdf; }
private:
- SecureVector<byte> secret;
- SecureVector<byte> salt;
+ std::vector<byte> secret;
+ std::vector<byte> salt;
KDF* kdf;
u32bit outlen;
};