From b7be386e463e67133069036141655fb2b2035047 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 29 Sep 2016 22:13:26 +0200 Subject: xray: print block offsets --- gocryptfs-xray/xray_main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } } -- cgit v1.2.3