diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-08-03 17:46:29 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-08-03 17:46:29 +0200 |
commit | 0c016120f41afb04a9ecb784c37eff63900c53d5 (patch) | |
tree | 0f7cea09c11746b8996658754aba27f3aaeca95e | |
parent | e85dda296f425be323e058e232f83de6cbbca204 (diff) |
Slightly reduce hash complexity to reduce login time.
-rw-r--r-- | src/hash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.cc b/src/hash.cc index 5b67d92..95f9997 100644 --- a/src/hash.cc +++ b/src/hash.cc @@ -35,7 +35,7 @@ std::string getEncoded(const Salt& salt, const std::string& password) { constexpr std::size_t hashlen = 32u; - constexpr std::uint32_t t_cost = 10; // 10-pass computation + constexpr std::uint32_t t_cost = 9; // 9-pass computation constexpr std::uint32_t m_cost = (1 << 16); // 64 mebibytes memory usage constexpr std::uint32_t parallelism = 1; // number of threads and lanes |