aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_passhash.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-22 15:54:04 -0400
committerJack Lloyd <[email protected]>2018-08-22 15:54:04 -0400
commit56468f8a389350516de67005c8e780c4f7743aab (patch)
treef151e3421fe9532087c9b62468e1a02344086478 /src/tests/test_passhash.cpp
parent2fc2598ebab23aa63f7be30c8a2eff6afb262fb3 (diff)
Simplify exception messages
Remove "Invalid argument" and "Decoding Error" prefixes
Diffstat (limited to 'src/tests/test_passhash.cpp')
-rw-r--r--src/tests/test_passhash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_passhash.cpp b/src/tests/test_passhash.cpp
index 546dce39e..b6bd268b1 100644
--- a/src/tests/test_passhash.cpp
+++ b/src/tests/test_passhash.cpp
@@ -63,7 +63,7 @@ class Bcrypt_Tests final : public Text_Based_Test
}
result.test_throws("Invalid bcrypt version rejected",
- "Invalid argument Unknown bcrypt version 'q'",
+ "Unknown bcrypt version 'q'",
[]() { Botan::generate_bcrypt("pass", Test::rng(), 4, 'q'); });
result.set_ns_consumed(Test::timestamp() - start);
@@ -138,11 +138,11 @@ class Passhash9_Tests final : public Text_Based_Test
Botan::is_passhash9_alg_supported(255) == false);
result.test_throws("Throws if algorithm not supported",
- "Invalid argument Passhash9: Algorithm id 255 is not defined",
+ "Passhash9: Algorithm id 255 is not defined",
[]() { Botan::generate_passhash9("pass", Test::rng(), 3, 255); });
result.test_throws("Throws if iterations is too high",
- "Invalid argument Requested passhash9 work factor 513 is too large",
+ "Requested passhash9 work factor 513 is too large",
[]() { Botan::check_passhash9("floof", "$9$AgIB3c5J3kvAuML84sZ5hWT9WzJtiYRPLCEARaujS7I6IKbNCwp0"); });
return {result};
}