Skip to content

Commit c7c683e

Browse files
matjongperciva
authored andcommitted
Increase maximum value of the p cmdline parameter
The upper limit of the value of the `-p` cmdline parameter is 32, which is relatively low. Currently, hashing with logN=20, r=8 and p=32 takes around 90s on my slow CPU (Intel i3-7020U). This is in contrast to the `--logN` parameter, which can be set up to 40, which corresponds to 1TB of RAM. Additionally, the program will automatically pick high values of `p` when given high values of the `-t` (maxtime) parameter. So allow specifying higher values of the `p` parameter in cmdline. Signed-off-by: Mateusz Jończyk <[email protected]>
1 parent e584f2c commit c7c683e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ main(int argc, char * argv[])
282282
}
283283
break;
284284
GETOPT_OPTARG("-p"):
285-
GETOPT_PARSENUM_WITHIN_UNSIGNED(&params.p, 1, 32);
285+
GETOPT_PARSENUM_WITHIN_UNSIGNED(&params.p, 1, 2048);
286286
break;
287287
GETOPT_OPTARG("--passphrase"):
288288
if (passphrase_entry != PASSPHRASE_UNSET) {

0 commit comments

Comments
 (0)