diff options
author | Jack Lloyd <[email protected]> | 2017-12-28 12:18:09 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-28 12:18:09 -0500 |
commit | eeaa03b1a2b435c6ed01a85305e356df7bc7017e (patch) | |
tree | b896ce5bdb93a96a8229bad5199e22060efc621a /src/lib/passhash | |
parent | deaa16feab1a525c90647c59dc96e877dffa812a (diff) |
Add passhash9 tests for edge cases
And correct exception message which referred to bcrypt
Diffstat (limited to 'src/lib/passhash')
-rw-r--r-- | src/lib/passhash/passhash9/passhash9.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |