From dc5825370350c506a354a3a46a1f13901eea8865 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 12 Dec 2017 16:44:04 +0100 Subject: [PATCH] Fix salt length for mode 16200 in test.pl --- tools/test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test.pl b/tools/test.pl index 7710496ac..309248c93 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -3835,7 +3835,7 @@ sub passthrough } elsif ($mode == 16200) { - $tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 16)); + $tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 32)); } else { @@ -4898,11 +4898,11 @@ sub single { if ($len != 0) { - rnd ($mode, $len, 16); + rnd ($mode, $len, 32); } else { - rnd ($mode, $i, 16); + rnd ($mode, $i, 32); } } }