From ddc15e139fb8748ad06722944be1968c0d55803d Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 7 Aug 2017 09:51:20 -0700 Subject: cmd/fscrypt: fix help message for ErrKeyFileLength The key file for the raw_key source is required to contain a wrapping key (32 bytes), not a policy key (64 bytes). --- cmd/fscrypt/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/fscrypt/errors.go b/cmd/fscrypt/errors.go index e0875e9..b0548d5 100644 --- a/cmd/fscrypt/errors.go +++ b/cmd/fscrypt/errors.go @@ -50,7 +50,7 @@ var ( ErrSpecifyProtector = errors.New("multiple protectors available") ErrWrongKey = errors.New("incorrect key provided") ErrSpecifyKeyFile = errors.New("no key file specified") - ErrKeyFileLength = errors.Errorf("key file must be %d bytes", metadata.PolicyKeyLen) + ErrKeyFileLength = errors.Errorf("key file must be %d bytes", metadata.InternalKeyLen) ErrAllLoadsFailed = errors.New("could not load any protectors") ErrMustBeRoot = errors.New("this command must be run as root") ErrPolicyUnlocked = errors.New("this file or directory is already unlocked") -- cgit v1.2.3