Further explain the use of 'scryptn' parameter (#94)

* Further explain the use of 'scryptn' parameter

* Further explain the use of 'scryptn' parameter in MANPAGE

* Use 28 as reasonable upper limit
This commit is contained in:
danim7 2017-03-25 18:22:08 +01:00 committed by rfjakob
parent 1ff4ae56c1
commit 40f0a8ee72
2 changed files with 5 additions and 5 deletions

View File

@ -200,9 +200,9 @@ Options:
For more details visit https://github.com/rfjakob/gocryptfs/issues/92 .
**-scryptn int**
: scrypt cost parameter logN. Setting this to a lower value speeds up
mounting but makes the password susceptible to brute-force attacks
(default 16)
: scrypt cost parameter logN. Possible values: 10-28. Setting this to a lower
value speeds up mounting and reduces its memory needs, but makes
the password susceptible to brute-force attacks (default 16).
**-speed**
: Run crypto speed test. Benchmark Go's built-in GCM against OpenSSL

View File

@ -124,8 +124,8 @@ func parseCliOpts() (args argContainer) {
flagSet.StringVar(&args.fsname, "fsname", "", "Override the filesystem name")
flagSet.IntVar(&args.notifypid, "notifypid", 0, "Send USR1 to the specified process after "+
"successful mount - used internally for daemonization")
flagSet.IntVar(&args.scryptn, "scryptn", configfile.ScryptDefaultLogN, "scrypt cost parameter logN. "+
"A lower value speeds up mounting but makes the password susceptible to brute-force attacks")
flagSet.IntVar(&args.scryptn, "scryptn", configfile.ScryptDefaultLogN, "scrypt cost parameter logN. Possible values: 10-28. "+
"A lower value speeds up mounting and reduces its memory needs, but makes the password susceptible to brute-force attacks")
// Ignored otions
var dummyBool bool
ignoreText := "(ignored for compatibility)"