diff options
author | Jakob Unterwurzacher | 2016-09-20 21:58:04 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-09-25 16:43:17 +0200 |
commit | 7f87ed78f2f27831f2fa9409106846e3288c6f6e (patch) | |
tree | b756236a7a9fcfce9f20eeee5ce4ba7aa51b00d9 /internal/fusefrontend | |
parent | d1762c5b95c3279b0a2dfa3df5c99fe59922b666 (diff) |
cryptocore: add support for GCM-SIV
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r-- | internal/fusefrontend/args.go | 6 | ||||
-rw-r--r-- | internal/fusefrontend/fs.go | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/internal/fusefrontend/args.go b/internal/fusefrontend/args.go index 78b9b5b..d0e1835 100644 --- a/internal/fusefrontend/args.go +++ b/internal/fusefrontend/args.go @@ -1,10 +1,14 @@ package fusefrontend +import ( + "github.com/rfjakob/gocryptfs/internal/cryptocore" +) + // Container for arguments that are passed from main() to fusefrontend type Args struct { Masterkey []byte Cipherdir string - OpenSSL bool + CryptoBackend cryptocore.BackendTypeEnum PlaintextNames bool LongNames bool // Should we chown a file after it has been created? diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index bc81c37..575865e 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -37,7 +37,7 @@ type FS struct { // Encrypted FUSE overlay filesystem func NewFS(args Args) *FS { - cryptoCore := cryptocore.New(args.Masterkey, args.OpenSSL, true) + cryptoCore := cryptocore.New(args.Masterkey, args.CryptoBackend, contentenc.IVBitLen) contentEnc := contentenc.New(cryptoCore, contentenc.DefaultBS) nameTransform := nametransform.New(cryptoCore, args.LongNames) |