summaryrefslogtreecommitdiff
path: root/gocryptfs-xray/xray_main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-04 19:34:15 +0100
committerJakob Unterwurzacher2019-01-04 19:34:15 +0100
commit2024616722ee18c3a8886490166d090f81f2ecaf (patch)
tree78ddc22674fa37015ab86b32c9ac674ca65d9235 /gocryptfs-xray/xray_main.go
parent8c18fb5db9544486412c697a90ad55710639b36a (diff)
xray: print "assuming AES-GCM mode" unless -aessiv is passed
To alert the user that they can and should choose the right mode.
Diffstat (limited to 'gocryptfs-xray/xray_main.go')
-rw-r--r--gocryptfs-xray/xray_main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go
index 5a81caf..73b1e18 100644
--- a/gocryptfs-xray/xray_main.go
+++ b/gocryptfs-xray/xray_main.go
@@ -32,6 +32,8 @@ func prettyPrintHeader(h *contentenc.FileHeader, aessiv bool) {
msg := "Header: Version: %d, Id: %s"
if aessiv {
msg += ", assuming AES-SIV mode"
+ } else {
+ msg += ", assuming AES-GCM mode"
}
fmt.Printf(msg+"\n", h.Version, id)
}