From 24594d99bf74e1a4a58577348ab9fb979aa83ee6 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 28 Dec 2018 02:43:40 +0100 Subject: [PATCH] configfile: Fix a copy&paste error in validateParams method. --- internal/configfile/scrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }