aboutsummaryrefslogtreecommitdiffstats
path: root/src/pbkdf/pbkdf1/pbkdf1.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-04-04 14:33:28 +0000
committerlloyd <[email protected]>2013-04-04 14:33:28 +0000
commit1a9d22bd22653c2eeaed0d8098facacb39c80dc1 (patch)
treee8b3af5c4c05cc2fdc58f11d6abd1f6875a08a48 /src/pbkdf/pbkdf1/pbkdf1.cpp
parent1f1b5ac0d8bf3646c72bd2cb0616fd1c06e21320 (diff)
Change the default PKCS #8 PBKDF runtime from 200 to 300 milliseconds.
Round PBKDF1 and PBKDF2 time-based iterations to multiples of 10000 instead of 8192. Update the password hashing docs a bit.
Diffstat (limited to 'src/pbkdf/pbkdf1/pbkdf1.cpp')
-rw-r--r--src/pbkdf/pbkdf1/pbkdf1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pbkdf/pbkdf1/pbkdf1.cpp b/src/pbkdf/pbkdf1/pbkdf1.cpp
index d51cbdc18..9d1672529 100644
--- a/src/pbkdf/pbkdf1/pbkdf1.cpp
+++ b/src/pbkdf/pbkdf1/pbkdf1.cpp
@@ -34,7 +34,7 @@ PKCS5_PBKDF1::key_derivation(size_t key_len,
{
if(iterations == 0)
{
- if(iterations_performed % 8192 == 0)
+ if(iterations_performed % 10000 == 0)
{
auto time_taken = std::chrono::high_resolution_clock::now() - start;
auto msec_taken = std::chrono::duration_cast<std::chrono::milliseconds>(time_taken);