Unit tests on PasswordManager are now much faster because the tests use a much
lower iterations count now then the default setting.
This commit is contained in:
parent
0b088a2723
commit
8f1ba8130c
5 changed files with 30 additions and 12 deletions
|
|
@ -29,7 +29,7 @@ public:
|
|||
|
||||
// static PasswordManager create(const std::string &file_name);
|
||||
|
||||
PasswordManager();
|
||||
explicit PasswordManager(int iterations = 8192);
|
||||
/** Unlocks the passwords of the connections.
|
||||
*
|
||||
* \return Normally it return a bool specifying if the password was accepted.
|
||||
|
|
@ -49,6 +49,7 @@ public:
|
|||
Expected<bool> getPassword(const std::string &key, std::string &out);
|
||||
|
||||
private:
|
||||
int m_iterations;
|
||||
Botan::AutoSeeded_RNG m_rng;
|
||||
Botan::OctetString m_keySalt; // salt for generating crypto key
|
||||
StrengthenedKey m_masterKey; // crypto key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue