From f721f23d39db0a411e8e53daf329d6755adf19a2 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 28 Dec 2018 22:31:03 +0100 Subject: [PATCH] Update test modules to max password length 255 not 256 --- tools/test_modules/m00000.pm | 2 +- tools/test_modules/m00010.pm | 2 +- tools/test_modules/m00011.pm | 2 +- tools/test_modules/m00012.pm | 2 +- tools/test_modules/m00020.pm | 2 +- tools/test_modules/m00021.pm | 2 +- tools/test_modules/m00023.pm | 2 +- tools/test_modules/m00050.pm | 2 +- tools/test_modules/m00060.pm | 2 +- tools/test_modules/m00100.pm | 2 +- tools/test_modules/m00110.pm | 2 +- tools/test_modules/m00120.pm | 2 +- tools/test_modules/m00200.pm | 2 +- tools/test_modules/m00300.pm | 2 +- tools/test_modules/m01000.pm | 2 +- tools/test_modules/m05600.pm | 2 +- tools/test_modules/m18400.pm | 2 +- tools/test_modules/m18500.pm | 2 +- tools/test_modules/m18600.pm | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tools/test_modules/m00000.pm b/tools/test_modules/m00000.pm index 9528e6a76..7eac4485a 100644 --- a/tools/test_modules/m00000.pm +++ b/tools/test_modules/m00000.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [0, 0], [0, 55], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 55], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m00010.pm b/tools/test_modules/m00010.pm index 23261eaf0..efda25251 100644 --- a/tools/test_modules/m00010.pm +++ b/tools/test_modules/m00010.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00011.pm b/tools/test_modules/m00011.pm index 6c413dad2..ff9b88488 100644 --- a/tools/test_modules/m00011.pm +++ b/tools/test_modules/m00011.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [30, 30], [0, 55], [30, 30], [30, 55]] } +sub module_constraints { [[0, 255], [30, 30], [0, 55], [30, 30], [30, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00012.pm b/tools/test_modules/m00012.pm index 816667e94..b1d90e05e 100644 --- a/tools/test_modules/m00012.pm +++ b/tools/test_modules/m00012.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [0, 32], [0, 55], [0, 32], [0, 55]] } +sub module_constraints { [[0, 255], [0, 32], [0, 55], [0, 32], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00020.pm b/tools/test_modules/m00020.pm index c230400ba..12e574238 100644 --- a/tools/test_modules/m00020.pm +++ b/tools/test_modules/m00020.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00021.pm b/tools/test_modules/m00021.pm index b2a6bc57f..b22949559 100644 --- a/tools/test_modules/m00021.pm +++ b/tools/test_modules/m00021.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [2, 2], [0, 55], [2, 2], [2, 55]] } +sub module_constraints { [[0, 255], [2, 2], [0, 55], [2, 2], [2, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00023.pm b/tools/test_modules/m00023.pm index bea2d24a1..e6f59cc72 100644 --- a/tools/test_modules/m00023.pm +++ b/tools/test_modules/m00023.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 248], [0, 248], [0, 47], [0, 47], [0, 47]] } +sub module_constraints { [[0, 247], [0, 247], [0, 47], [0, 47], [0, 47]] } sub module_generate_hash { diff --git a/tools/test_modules/m00050.pm b/tools/test_modules/m00050.pm index a094908af..185f2266b 100644 --- a/tools/test_modules/m00050.pm +++ b/tools/test_modules/m00050.pm @@ -11,7 +11,7 @@ use warnings; use Digest::MD5 qw (md5); use Digest::HMAC qw (hmac hmac_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00060.pm b/tools/test_modules/m00060.pm index b2fa99aa5..6a5252e77 100644 --- a/tools/test_modules/m00060.pm +++ b/tools/test_modules/m00060.pm @@ -11,7 +11,7 @@ use warnings; use Digest::MD5 qw (md5); use Digest::HMAC qw (hmac hmac_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00100.pm b/tools/test_modules/m00100.pm index cc0fd533b..69e355e8d 100644 --- a/tools/test_modules/m00100.pm +++ b/tools/test_modules/m00100.pm @@ -10,7 +10,7 @@ use warnings; use Digest::SHA qw (sha1_hex); -sub module_constraints { [[0, 256], [0, 0], [0, 55], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 55], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m00110.pm b/tools/test_modules/m00110.pm index a19451847..512014df9 100644 --- a/tools/test_modules/m00110.pm +++ b/tools/test_modules/m00110.pm @@ -10,7 +10,7 @@ use warnings; use Digest::SHA qw (sha1_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00120.pm b/tools/test_modules/m00120.pm index 7c35588ff..9db9e497e 100644 --- a/tools/test_modules/m00120.pm +++ b/tools/test_modules/m00120.pm @@ -10,7 +10,7 @@ use warnings; use Digest::SHA qw (sha1_hex); -sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 55], [0, 55]] } sub module_generate_hash { diff --git a/tools/test_modules/m00200.pm b/tools/test_modules/m00200.pm index aab740c25..222dc4f83 100644 --- a/tools/test_modules/m00200.pm +++ b/tools/test_modules/m00200.pm @@ -10,7 +10,7 @@ use warnings; use Authen::Passphrase::MySQL323; -sub module_constraints { [[0, 256], [0, 0], [0, 55], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 55], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m00300.pm b/tools/test_modules/m00300.pm index e33b71597..fb4252cd5 100644 --- a/tools/test_modules/m00300.pm +++ b/tools/test_modules/m00300.pm @@ -10,7 +10,7 @@ use warnings; use Crypt::MySQL qw (password41); -sub module_constraints { [[0, 256], [0, 0], [0, 55], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 55], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m01000.pm b/tools/test_modules/m01000.pm index ce216b7d1..adc2435d7 100644 --- a/tools/test_modules/m01000.pm +++ b/tools/test_modules/m01000.pm @@ -11,7 +11,7 @@ use warnings; use Digest::MD4 qw (md4_hex); use Encode; -sub module_constraints { [[0, 256], [0, 0], [0, 27], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 27], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m05600.pm b/tools/test_modules/m05600.pm index f2f8fa88a..543ab8389 100644 --- a/tools/test_modules/m05600.pm +++ b/tools/test_modules/m05600.pm @@ -12,7 +12,7 @@ use Digest::HMAC qw (hmac hmac_hex); use Digest::MD5 qw (md5); use Encode qw (encode); -sub module_constraints { [[0, 256], [0, 256], [0, 27], [0, 27], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 27], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m18400.pm b/tools/test_modules/m18400.pm index fa3bd65f7..dfa6a7b97 100644 --- a/tools/test_modules/m18400.pm +++ b/tools/test_modules/m18400.pm @@ -12,7 +12,7 @@ use Crypt::Mode::CBC; use Crypt::PBKDF2; use Digest::SHA qw (sha256 sha256_hex); -sub module_constraints { [[0, 256], [32, 32], [0, 55], [32, 32], [-1, -1]] } +sub module_constraints { [[0, 255], [32, 32], [0, 55], [32, 32], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m18500.pm b/tools/test_modules/m18500.pm index f6b02a8b2..9a652481f 100644 --- a/tools/test_modules/m18500.pm +++ b/tools/test_modules/m18500.pm @@ -11,7 +11,7 @@ use warnings; use Digest::MD5 qw (md5_hex); use Digest::SHA1 qw (sha1_hex); -sub module_constraints { [[0, 256], [0, 0], [0, 55], [0, 0], [-1, -1]] } +sub module_constraints { [[0, 255], [0, 0], [0, 55], [0, 0], [-1, -1]] } sub module_generate_hash { diff --git a/tools/test_modules/m18600.pm b/tools/test_modules/m18600.pm index cf3c28b57..ce684dae4 100644 --- a/tools/test_modules/m18600.pm +++ b/tools/test_modules/m18600.pm @@ -12,7 +12,7 @@ use Crypt::GCrypt; use Crypt::PBKDF2; use Digest::SHA qw (sha1 sha1_hex); -sub module_constraints { [[0, 256], [32, 32], [0, 55], [32, 32], [-1, -1]] } +sub module_constraints { [[0, 255], [32, 32], [0, 55], [32, 32], [-1, -1]] } sub module_generate_hash {