diff --git a/src/modules/module_03201.c b/src/modules/module_03201.c index a6e3867e1..25c69dff2 100644 --- a/src/modules/module_03201.c +++ b/src/modules/module_03201.c @@ -59,13 +59,6 @@ typedef struct bcrypt_tmp } bcrypt_tmp_t; -u32 module_pw_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) -{ - const u32 pw_max = 72; // Underlaying Blowfish max - - return pw_max; -} - u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { const u64 tmp_size = (const u64) sizeof (bcrypt_tmp_t); @@ -352,7 +345,7 @@ void module_init (module_ctx_t *module_ctx) module_ctx->module_potfile_disable = MODULE_DEFAULT; module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT; module_ctx->module_pwdump_column = MODULE_DEFAULT; - module_ctx->module_pw_max = module_pw_max; + module_ctx->module_pw_max = MODULE_DEFAULT; module_ctx->module_pw_min = MODULE_DEFAULT; module_ctx->module_salt_max = MODULE_DEFAULT; module_ctx->module_salt_min = MODULE_DEFAULT; diff --git a/tools/test_modules/m03201.pm b/tools/test_modules/m03201.pm index b5c47dd5f..f00d8ad22 100644 --- a/tools/test_modules/m03201.pm +++ b/tools/test_modules/m03201.pm @@ -12,7 +12,7 @@ use Crypt::Eksblowfish::Bcrypt qw (bcrypt en_base64); use MIME::Base64 qw (decode_base64); use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 72], [16, 16], [-1, -1], [-1, -1], [-1, -1]] } +sub module_constraints { [[0, 256], [16, 16], [-1, -1], [-1, -1], [-1, -1]] } sub module_generate_hash {