1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Increases the maximum value for s2k-count. The maximum s2k-count value is 65011712 according to the PGP spec. Increating this value fixes a salt iteration exception for hashes with non-default value for s2k-count. (Fix successfully tested with a hash with 62914560 s2k-count.)

This commit is contained in:
Jarle Thorsen 2021-11-08 09:44:48 +01:00
parent 24581625e2
commit ef83575c8f

View File

@ -280,7 +280,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const u32 salt_iter = hc_strtoul ((const char *) token.buf[11], NULL, 10);
if (salt_iter < 8 || salt_iter > 1000000) return (PARSER_SALT_ITERATION);
if (salt_iter < 8 || salt_iter > 65011712) return (PARSER_SALT_ITERATION);
salt->salt_iter = salt_iter;