From eeaa03b1a2b435c6ed01a85305e356df7bc7017e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 28 Dec 2017 12:18:09 -0500 Subject: Add passhash9 tests for edge cases And correct exception message which referred to bcrypt --- src/lib/passhash/passhash9/passhash9.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/passhash') diff --git a/src/lib/passhash/passhash9/passhash9.cpp b/src/lib/passhash/passhash9/passhash9.cpp index 47c7d0342..9b4a31370 100644 --- a/src/lib/passhash/passhash9/passhash9.cpp +++ b/src/lib/passhash/passhash9/passhash9.cpp @@ -105,8 +105,8 @@ bool check_passhash9(const std::string& pass, const std::string& hash) return false; if(work_factor > 512) - throw Invalid_Argument("Requested Bcrypt work factor " + - std::to_string(work_factor) + " too large"); + throw Invalid_Argument("Requested passhash9 work factor " + + std::to_string(work_factor) + " is too large"); const size_t kdf_iterations = WORK_FACTOR_SCALE * work_factor; -- cgit v1.2.3