From 0d41a310316b5ca4144326cad39770f3108a6cec Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 14 Feb 2010 02:11:46 +0000 Subject: Correct passhash9 vector for recent format changes (longer salt+PRF output, alg id) --- checks/validate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/checks/validate.cpp b/checks/validate.cpp index 0df0aa478..b0a877b94 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -71,7 +71,8 @@ bool test_passhash(RandomNumberGenerator& rng) #if defined(BOTAN_HAS_PASSHASH9) const std::string input = "secret"; - const std::string fixed_hash = "$9$AArBRAG0kcKp3XPDUgd32ONhutn9HMQKix7H"; + const std::string fixed_hash = + "$9$AAAKhiHXTIUhNhbegwBXJvk03XXJdzFMy+i3GFMIBYKtthTTmXZA"; if(!check_passhash9(input, fixed_hash)) return false; @@ -207,7 +208,7 @@ u32bit do_validation_tests(const std::string& filename, if(should_pass && !test_passhash(rng)) { - std::cout << "Passhash tests failed" << std::endl; + std::cout << "Passhash9 tests failed" << std::endl; errors++; } -- cgit v1.2.3