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:
eelke 2017-12-16 21:42:41 +01:00
parent 0b088a2723
commit 8f1ba8130c
5 changed files with 30 additions and 12 deletions

View file

@ -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