From 0c016120f41afb04a9ecb784c37eff63900c53d5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 3 Aug 2020 17:46:29 +0200 Subject: Slightly reduce hash complexity to reduce login time. --- src/hash.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3