Fix warning deprecated funtion
This commit is contained in:
parent
8f5de10f58
commit
b97adced4c
1 changed files with 3 additions and 7 deletions
|
|
@ -267,11 +267,7 @@ KeyStrengthener PasswordManager::createKeyStrengthener()
|
||||||
const std::string algo = "Scrypt";
|
const std::string algo = "Scrypt";
|
||||||
auto pwh_fam = Botan::PasswordHashFamily::create(algo);
|
auto pwh_fam = Botan::PasswordHashFamily::create(algo);
|
||||||
return KeyStrengthener(
|
return KeyStrengthener(
|
||||||
#ifdef _WIN32
|
|
||||||
pwh_fam->tune_params(key_size, 2000, 130),
|
pwh_fam->tune_params(key_size, 2000, 130),
|
||||||
#else
|
|
||||||
pwh_fam->tune(key_size, std::chrono::seconds(2), 130),
|
|
||||||
#endif
|
|
||||||
salt,
|
salt,
|
||||||
key_size
|
key_size
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue