From 7f87ed78f2f27831f2fa9409106846e3288c6f6e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 20 Sep 2016 21:58:04 +0200 Subject: cryptocore: add support for GCM-SIV --- internal/fusefrontend/args.go | 6 +++++- internal/fusefrontend/fs.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/fusefrontend') 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) -- cgit v1.2.3