aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorFrank Denis2025-03-12 08:46:12 +0100
committerJakob Unterwurzacher2025-03-12 20:43:23 +0100
commita3009fe003ad861a7949145e08ecfee994ad83ac (patch)
treec42a9fbbb60c44cf86df149c689655609fcf2f5a /mount.go
parent2130e49349689ca7937a0e8338588f7fb96030c0 (diff)
Another plate to override the default nonce size for AEGIS
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go2
1 files changed, 2 insertions, 0 deletions
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.