aboutsummaryrefslogtreecommitdiff
path: root/internal/configfile
diff options
context:
space:
mode:
authorSebastian Lackner2018-12-28 02:43:40 +0100
committerrfjakob2018-12-28 09:58:46 +0100
commit24594d99bf74e1a4a58577348ab9fb979aa83ee6 (patch)
treed33e2f439c767aa34df2b5e5368a8268d31434a2 /internal/configfile
parent07c486603c42af00c81d9e76e3b0731aa986e881 (diff)
configfile: Fix a copy&paste error in validateParams method.
Diffstat (limited to 'internal/configfile')
-rw-r--r--internal/configfile/scrypt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/configfile/scrypt.go b/internal/configfile/scrypt.go
index a1caf06..54fe0c6 100644
--- a/internal/configfile/scrypt.go
+++ b/internal/configfile/scrypt.go
@@ -100,7 +100,7 @@ func (s *ScryptKDF) validateParams() {
os.Exit(exitcodes.ScryptParams)
}
if s.KeyLen < cryptocore.KeyLen {
- tlog.Fatal.Printf("Fatal: scrypt parameter KeyLen below minimum: value=%d, min=%d", len(s.Salt), cryptocore.KeyLen)
+ tlog.Fatal.Printf("Fatal: scrypt parameter KeyLen below minimum: value=%d, min=%d", s.KeyLen, cryptocore.KeyLen)
os.Exit(exitcodes.ScryptParams)
}
}