aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-08-07 09:51:20 -0700
committerEric Biggers <ebiggers@google.com>2017-08-07 09:56:19 -0700
commitddc15e139fb8748ad06722944be1968c0d55803d (patch)
treebc8132001b8e75f7527647629f3debd2233f305e
parent1f2945839b9230e718476b54517b1c1ec772d734 (diff)
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).
-rw-r--r--cmd/fscrypt/errors.go2
1 files changed, 1 insertions, 1 deletions
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")