From dc32710045f6f46913ae336b6fb77bf90b6bdb85 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 21 Oct 2021 09:37:04 +0200 Subject: nametransform: add longNameMax parameter Determines when to start hashing long names instead of hardcoded 255. Will be used to alleviate "name too long" issues some users see on cloud storage. https://github.com/rfjakob/gocryptfs/issues/499 --- mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mount.go') diff --git a/mount.go b/mount.go index dfabbc9..004c646 100644 --- a/mount.go +++ b/mount.go @@ -324,7 +324,7 @@ func initFuseFrontend(args *argContainer) (rootNode fs.InodeEmbedder, wipeKeys f // Init crypto backend cCore := cryptocore.New(masterkey, cryptoBackend, IVBits, args.hkdf) cEnc := contentenc.New(cCore, contentenc.DefaultBS) - nameTransform := nametransform.New(cCore.EMECipher, frontendArgs.LongNames, + nameTransform := nametransform.New(cCore.EMECipher, frontendArgs.LongNames, 0, args.raw64, []string(args.badname), frontendArgs.DeterministicNames) // After the crypto backend is initialized, // we can purge the master key from memory. -- cgit v1.2.3