diff options
Diffstat (limited to 'gocryptfs-xray/xray_main.go')
-rw-r--r-- | gocryptfs-xray/xray_main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go index 1c491f1..efba752 100644 --- a/gocryptfs-xray/xray_main.go +++ b/gocryptfs-xray/xray_main.go @@ -81,6 +81,7 @@ type argContainer struct { encryptPaths *bool aessiv *bool xchacha *bool + aegis *bool sep0 *bool fido2 *string version *bool @@ -94,6 +95,7 @@ func main() { args.sep0 = flag.Bool("0", false, "Use \\0 instead of \\n as separator") args.aessiv = flag.Bool("aessiv", false, "Assume AES-SIV mode instead of AES-GCM") args.xchacha = flag.Bool("xchacha", false, "Assume XChaCha20-Poly1305 mode instead of AES-GCM") + args.aegis = flag.Bool("aegis", false, "Assume AEGIS mode instead of AES-GCM") args.fido2 = flag.String("fido2", "", "Protect the masterkey using a FIDO2 token instead of a password") args.version = flag.Bool("version", false, "Print version information") @@ -176,6 +178,8 @@ func inspectCiphertext(args *argContainer, fd *os.File) { algo = cryptocore.BackendAESSIV } else if *args.xchacha { algo = cryptocore.BackendXChaCha20Poly1305 + } else if *args.aegis { + algo = cryptocore.BackendAegis } headerBytes := make([]byte, contentenc.HeaderLen) n, err := fd.ReadAt(headerBytes, 0) |