aboutsummaryrefslogtreecommitdiffstats
path: root/checks/validate.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-14 02:11:46 +0000
committerlloyd <[email protected]>2010-02-14 02:11:46 +0000
commit0d41a310316b5ca4144326cad39770f3108a6cec (patch)
treee8901e6d032cb7ed5c3643810e55cfe6f63d05c7 /checks/validate.cpp
parent7c9cd7a78ee94eb89fe97144cb1caa45783767b3 (diff)
Correct passhash9 vector for recent format changes (longer salt+PRF output, alg id)
Diffstat (limited to 'checks/validate.cpp')
-rw-r--r--checks/validate.cpp5
1 files 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++;
}