From 2362e67a9e5c6f1c96e987e8753eca295f283875 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 6 Mar 2017 22:43:55 +0100 Subject: cli: add "-hkdf" option This commit also enables actually passing the HKDF setting to fusefrontend, this was missing till now. --- mount.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mount.go') diff --git a/mount.go b/mount.go index 8709124..f4b562d 100644 --- a/mount.go +++ b/mount.go @@ -190,12 +190,14 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF ConfigCustom: args._configCustom, Raw64: args.raw64, NoPrealloc: args.noprealloc, + HKDF: args.hkdf, } // confFile is nil when "-zerokey" or "-masterkey" was used if confFile != nil { // Settings from the config file override command line args frontendArgs.PlaintextNames = confFile.IsFeatureFlagSet(configfile.FlagPlaintextNames) frontendArgs.Raw64 = confFile.IsFeatureFlagSet(configfile.FlagRaw64) + frontendArgs.HKDF = confFile.IsFeatureFlagSet(configfile.FlagHKDF) if confFile.IsFeatureFlagSet(configfile.FlagAESSIV) { frontendArgs.CryptoBackend = cryptocore.BackendAESSIV } else if args.reverse { -- cgit v1.2.3