From a3009fe003ad861a7949145e08ecfee994ad83ac Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 12 Mar 2025 08:46:12 +0100 Subject: Another plate to override the default nonce size for AEGIS --- mount.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount.go b/mount.go index c9fa639..cfc48ec 100644 --- a/mount.go +++ b/mount.go @@ -19,6 +19,7 @@ import ( "golang.org/x/crypto/chacha20poly1305" + "github.com/aegis-aead/go-libaegis/aegis256x2" "github.com/hanwen/go-fuse/v2/fs" "github.com/hanwen/go-fuse/v2/fuse" @@ -267,6 +268,7 @@ func initFuseFrontend(args *argContainer) (rootNode fs.InodeEmbedder, wipeKeys f } if args.aegis { cryptoBackend = cryptocore.BackendAegis + IVBits = aegis256x2.NonceSize * 8 } // forceOwner implies allow_other, as documented. // Set this early, so args.allow_other can be relied on below this point. -- cgit v1.2.3