From 0a0522cf76908003e5b77d99953c8e1c97da5c57 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 4 Sep 2017 15:57:57 +0200 Subject: [PATCH] Reset salt length limit in test.pl for mode 4520 to not run into errors in case the user specifies the -O mode --- tools/test.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test.pl b/tools/test.pl index 14d44fe26..5009c1856 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -3406,7 +3406,7 @@ sub passthrough } elsif ($mode == 4520) { - my $salt_len = get_random_num (1, 64); + my $salt_len = get_random_num (1, 50); $tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len)); } @@ -4066,7 +4066,7 @@ sub single } elsif ($mode == 4520) { - my $salt_len = get_random_num (1, 64); + my $salt_len = get_random_num (1, 50); for (my $i = 1; $i < 32; $i++) {