]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
Document stdin behaviour for getting raw key
authorPetteri Räty <github@petteriraty.eu>
Tue, 3 Dec 2024 12:11:03 +0000 (14:11 +0200)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 3 Dec 2024 17:54:35 +0000 (09:54 -0800)
Document the logic described in makeRawKey.

cmd/fscrypt/flags.go

index 7285133000e76d9c3603a657ee4de6d783e2bf12..3d3c51d50ba9bfa1a6e4aa3a2ab128774c1f8b3a 100644 (file)
@@ -222,7 +222,8 @@ var (
                Usage: `Use the contents of FILE as the wrapping key when
                        creating or unlocking raw_key protectors. FILE should be
                        formatted as raw binary and should be exactly 32 bytes
-                       long.`,
+                       long. When running non-interactively and no key is provided,
+                       will try to read the key from stdin.`,
        }
        userFlag = &stringFlag{
                Name:    "user",