diff options
Diffstat (limited to 'cmd/fscrypt/keys.go')
| -rw-r--r-- | cmd/fscrypt/keys.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/fscrypt/keys.go b/cmd/fscrypt/keys.go index 45dc294..cecaa5b 100644 --- a/cmd/fscrypt/keys.go +++ b/cmd/fscrypt/keys.go @@ -43,8 +43,12 @@ const stdinFd = 0 var ( // getting an existing key existingKeyFn = makeKeyFunc(true, false, "") + // getting an existing key when changing passphrases + oldExistingKeyFn = makeKeyFunc(true, false, "old ") // creating a new key createKeyFn = makeKeyFunc(false, true, "") + // creating a new key when changing passphrases + newCreateKeyFn = makeKeyFunc(false, true, "new ") ) // passphraseReader is an io.Reader intended for terminal passphrase input. The |