A few fixes on unit tests

pull/1914/head
jsteube 5 years ago
parent 72050ee796
commit 9310b534f4

@ -12,7 +12,7 @@ use Digest::SHA qw (sha256);
use MIME::Base64 qw (encode_base64 decode_base64);
use Encode;
sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 55], [0, 27]] }
sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 27], [0, 27]] }
sub module_generate_hash
{

@ -27,7 +27,7 @@ sub module_generate_hash
my $snonce = random_bytes (32);
my $anonce = random_bytes (32);
my $keyver = random_number (1, 4); # 1, 2 or 3
my $keyver = random_number (1, 3); # 1, 2 or 3
# eapol:
# should be "validly" generated, but in theory could be anything for us also:

@ -10,7 +10,7 @@ use warnings;
use Digest::MD5 qw (md5_hex);
sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 15], [0, 55]] }
sub module_constraints { [[0, 255], [0, 255], [0, 50], [0, 15], [0, 55]] }
sub module_generate_hash
{

Loading…
Cancel
Save