1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-05 06:58:56 +00:00

Fixed unit test initialization value for -m 11500

This commit is contained in:
Jens Steube 2021-10-01 20:16:47 +02:00
parent 5e48f2a552
commit d7c74d3ebb

View File

@ -17,12 +17,12 @@ sub module_generate_hash
my $word = shift; my $word = shift;
my $salt = shift; my $salt = shift;
$salt = "00000000"; my $iv = hex ($salt);
my $ctx = Digest::CRC->new my $ctx = Digest::CRC->new
( (
width => 32, width => 32,
init => hex ($salt), init => $iv,
xorout => 0xffffffff, xorout => 0xffffffff,
refout => 1, refout => 1,
poly => 0x04c11db7, poly => 0x04c11db7,
@ -32,7 +32,7 @@ sub module_generate_hash
$ctx->add ($word); $ctx->add ($word);
my $hash = sprintf ("%s:%s", $ctx->hexdigest (), $salt); my $hash = sprintf ("%s:%s", $ctx->hexdigest (), $salt);
return $hash; return $hash;
} }