From 1ed3d51df1750d5472b1349222c352171f1e8d64 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 18 Mar 2018 17:43:38 +0100 Subject: fusefrontend: add xattr support At the moment, only for reverse mode. https://github.com/rfjakob/gocryptfs/issues/217 --- internal/contentenc/content.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/contentenc') diff --git a/internal/contentenc/content.go b/internal/contentenc/content.go index e2a531c..c4ba7c9 100644 --- a/internal/contentenc/content.go +++ b/internal/contentenc/content.go @@ -131,10 +131,11 @@ func (be *ContentEnc) DecryptBlocks(ciphertext []byte, firstBlockNo uint64, file // concatAD concatenates the block number and the file ID to a byte blob // that can be passed to AES-GCM as associated data (AD). -// Result is: aData = blockNo.bigEndian + fileID. +// Result is: aData = [blockNo.bigEndian fileID]. func concatAD(blockNo uint64, fileID []byte) (aData []byte) { if fileID != nil && len(fileID) != headerIDLen { - // fileID is nil when decrypting the master key from the config file + // fileID is nil when decrypting the master key from the config file, + // and for symlinks and xattrs. log.Panicf("wrong fileID length: %d", len(fileID)) } const lenUint64 = 8 -- cgit v1.2.3