diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-08-07 09:51:20 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2017-08-07 09:56:19 -0700 |
| commit | ddc15e139fb8748ad06722944be1968c0d55803d (patch) | |
| tree | bc8132001b8e75f7527647629f3debd2233f305e /cmd/fscrypt/errors.go | |
| parent | 1f2945839b9230e718476b54517b1c1ec772d734 (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).
Diffstat (limited to 'cmd/fscrypt/errors.go')
| -rw-r--r-- | cmd/fscrypt/errors.go | 2 |
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") |