aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-05-29 11:41:20 -0400
committerJack Lloyd <[email protected]>2019-05-29 11:41:20 -0400
commit72655f4b237edebec557998669af676475fb721b (patch)
tree44ad79f9cd9e78afd98451da94daa72ee9f71bc4 /src/lib/pbkdf
parenteec722c5945f910ac9a9515cce322e08e98d72a9 (diff)
Improve test coverage. Fix Argon2 default params
Diffstat (limited to 'src/lib/pbkdf')
-rw-r--r--src/lib/pbkdf/argon2/argon2pwhash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pbkdf/argon2/argon2pwhash.cpp b/src/lib/pbkdf/argon2/argon2pwhash.cpp
index 2ea6c60c7..465c52c95 100644
--- a/src/lib/pbkdf/argon2/argon2pwhash.cpp
+++ b/src/lib/pbkdf/argon2/argon2pwhash.cpp
@@ -128,7 +128,7 @@ std::unique_ptr<PasswordHash> Argon2_Family::tune(size_t /*output_length*/,
std::unique_ptr<PasswordHash> Argon2_Family::default_params() const
{
- return this->from_params(64*1024*1024, 3, 4);
+ return this->from_params(128*1024, 1, 1);
}
std::unique_ptr<PasswordHash> Argon2_Family::from_iterations(size_t iter) const
@@ -139,7 +139,7 @@ std::unique_ptr<PasswordHash> Argon2_Family::from_iterations(size_t iter) const
mapping from iteration count to params
*/
const size_t M = iter;
- const size_t t = 3;
+ const size_t t = 1;
const size_t p = 1;
return this->from_params(M, t, p);
}