aboutsummaryrefslogtreecommitdiff
path: root/internal/pathiv
diff options
context:
space:
mode:
authorAleksey Vasenev2024-11-17 23:14:36 +0300
committerJakob Unterwurzacher2025-11-22 21:24:20 +0100
commited1c5e4a9f5ce1921f3ec03b32e591ce828ec5b9 (patch)
treea2e1f64e772e2af169df3ce4ac955fbf3ec8c83b /internal/pathiv
parentbe34b9822bea4ce3b717c1b9bf5076f1118427ec (diff)
Xattrs support in reverse mode
Fixes https://github.com/rfjakob/gocryptfs/issues/827
Diffstat (limited to 'internal/pathiv')
-rw-r--r--internal/pathiv/pathiv.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/pathiv/pathiv.go b/internal/pathiv/pathiv.go
index 48f8426..11a7189 100644
--- a/internal/pathiv/pathiv.go
+++ b/internal/pathiv/pathiv.go
@@ -20,6 +20,8 @@ const (
PurposeSymlinkIV Purpose = "SYMLINKIV"
// PurposeBlock0IV means the value will be used as the IV of ciphertext block #0.
PurposeBlock0IV Purpose = "BLOCK0IV"
+ // PurposeXattrIV means the value will be used as a xattr IV
+ PurposeXattrIV Purpose = "XATTRIV"
)
// Derive derives an IV from an encrypted path by hashing it with sha256