From e1479a254f6c350283e39d4d77b301cda1046d9b Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 8 Apr 2004 01:57:33 +0000 Subject: add minimum iteration time option git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@159 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- validat3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'validat3.cpp') 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; -- cgit v1.2.1