aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/passhash/bcrypt/bcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/passhash/bcrypt/bcrypt.cpp')
-rw-r--r--src/lib/passhash/bcrypt/bcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/passhash/bcrypt/bcrypt.cpp b/src/lib/passhash/bcrypt/bcrypt.cpp
index 8cea34a97..4f3cda2ae 100644
--- a/src/lib/passhash/bcrypt/bcrypt.cpp
+++ b/src/lib/passhash/bcrypt/bcrypt.cpp
@@ -138,7 +138,7 @@ bool check_bcrypt(const std::string& pass, const std::string& hash)
return false;
}
- const uint16_t workfactor = to_u32bit(hash.substr(4, 2));
+ const uint16_t workfactor = to_uint16(hash.substr(4, 2));
const std::vector<uint8_t> salt = bcrypt_base64_decode(hash.substr(7, 22));
if(salt.size() != 16)