1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Prepare -m 29910 unit-test to act as template for -m 29920 unit-test

This commit is contained in:
Jens Steube 2022-10-04 18:51:30 +02:00
parent dd05a988a1
commit f457397803

View File

@ -11,10 +11,11 @@ use warnings;
use Crypt::Mode::ECB;
use Crypt::PBKDF2;
my $ENC_MAX_KEY_NUM = 8;
my $ENC_NONCE_SIZE = 8;
my $ENC_KEY_SIZE = 16;
my $ENC_BLOCK_SIZE = 16;
my $ENC_MAX_KEY_NUM = 8;
my $ENC_NONCE_SIZE = 8;
my $ENC_KEY_SIZE = 16;
my $ENC_BLOCK_SIZE = 16;
my $ENC_KEYCHAIN_SIZE = 128;
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
@ -48,6 +49,8 @@ sub module_generate_hash
my $aes_key = substr ($key, 0, $ENC_KEY_SIZE);
## decrypt encrypted data using PBKDF2 key
my $iv_bin = pack ("H*", $iv);
my @ivs;