summaryrefslogtreecommitdiff
path: root/internal/nametransform/name_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/nametransform/name_api.go')
-rw-r--r--internal/nametransform/name_api.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/nametransform/name_api.go b/internal/nametransform/name_api.go
new file mode 100644
index 0000000..462e99c
--- /dev/null
+++ b/internal/nametransform/name_api.go
@@ -0,0 +1,16 @@
+package nametransform
+
+import "github.com/rfjakob/gocryptfs/internal/cryptocore"
+
+type NameTransform struct {
+ cryptoCore *cryptocore.CryptoCore
+ useEME bool
+ DirIVCache dirIVCache
+}
+
+func New(c *cryptocore.CryptoCore, useEME bool) *NameTransform {
+ return &NameTransform{
+ cryptoCore: c,
+ useEME: useEME,
+ }
+}