aboutsummaryrefslogtreecommitdiff
path: root/gocryptfs-xray/xray_main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-29 22:13:26 +0200
committerJakob Unterwurzacher2016-09-29 22:13:26 +0200
commitb7be386e463e67133069036141655fb2b2035047 (patch)
tree8dd67deff2d8297459be9396aa01b771af957490 /gocryptfs-xray/xray_main.go
parenta2510efe12d2720399afcd8baea0c6634d4779e6 (diff)
xray: print block offsets
Diffstat (limited to 'gocryptfs-xray/xray_main.go')
-rw-r--r--gocryptfs-xray/xray_main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go
index 8ebed8e..d58f1a6 100644
--- a/gocryptfs-xray/xray_main.go
+++ b/gocryptfs-xray/xray_main.go
@@ -80,6 +80,7 @@ func main() {
} else if err != nil {
errExit(err)
}
- fmt.Printf("Block %2d: IV: %s, Tag: %s, Len: %d\n", i, hex.EncodeToString(iv), hex.EncodeToString(tag), blockLen)
+ fmt.Printf("Block %2d: IV: %s, Tag: %s, Offset: %5d Len: %d\n",
+ i, hex.EncodeToString(iv), hex.EncodeToString(tag), off, blockLen)
}
}