diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-08 01:57:33 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-08 01:57:33 +0000 |
commit | e1479a254f6c350283e39d4d77b301cda1046d9b (patch) | |
tree | b8da570509087e1284ab7afeca281fee4b89836a /validat3.cpp | |
parent | fc7cc33bcaa5c4dd9874a95b75e34a478e0702a0 (diff) | |
download | cryptopp-e1479a254f6c350283e39d4d77b301cda1046d9b.tar.gz |
add minimum iteration time option
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@159 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'validat3.cpp')
-rw-r--r-- | validat3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validat3.cpp b/validat3.cpp index d4574e8..2e538cb 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -748,7 +748,7 @@ bool TestPBKDF(PasswordBasedKeyDerivationFunction &pbkdf, const PBKDF_TestTuple StringSource(tuple.hexDerivedKey, true, new HexDecoder(new StringSink(derivedKey))); SecByteBlock derived(derivedKey.size()); - pbkdf.GeneralDeriveKey(derived, derived.size(), tuple.purpose, (byte *)password.data(), password.size(), (byte *)salt.data(), salt.size(), tuple.iterations); + pbkdf.DeriveKey(derived, derived.size(), tuple.purpose, (byte *)password.data(), password.size(), (byte *)salt.data(), salt.size(), tuple.iterations); bool fail = memcmp(derived, derivedKey.data(), derived.size()) != 0; pass = pass && !fail; |