Skip to content

Commit

Permalink
Increase the default rounds for scrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Mar 28, 2020
1 parent 2248a05 commit dfeebf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/commands.cpp
Expand Up @@ -297,7 +297,7 @@ Json::Value generate_config(unsigned int version,
}
else if (pbkdf_algorithm == PBKDF_ALGO_SCRYPT)
{
uint32_t N = rounds > 0 ? rounds : 65536, r = 8, p = 1;
uint32_t N = rounds > 0 ? rounds : (1u << 18u), r = 8, p = 1;
config["iterations"] = N;
config["scrypt_r"] = r;
config["scrypt_p"] = p;
Expand Down

0 comments on commit dfeebf8

Please sign in to comment.