From ec61b98520abce8d2352172e796191b1829ab5f4 Mon Sep 17 00:00:00 2001 From: ishaan Date: Wed, 15 Jul 2026 07:02:28 +0530 Subject: make Mlock fail fatal, better argon2 memory --- internal/crypt/rawEncrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/crypt/rawEncrypt.go') diff --git a/internal/crypt/rawEncrypt.go b/internal/crypt/rawEncrypt.go index 03f742f..a138753 100644 --- a/internal/crypt/rawEncrypt.go +++ b/internal/crypt/rawEncrypt.go @@ -22,7 +22,7 @@ func EncryptBytesPass(inputBytes []byte, password []byte) ([]byte, error) { headers := FileHeaders{Salt: salt, Nonce: nonce, Type: File, Parts: 1, Auth: Pass, Recipients: []WrappedKey{}} - key := argon2.IDKey(password, headers.Salt[:], 1, 2*1024*1024, 2, 32) + key := argon2.IDKey(password, headers.Salt[:], 1, 64*1024*1024, 2, 32) TryMlock(key) defer clear(key) aead, err := chacha20poly1305.New(key) -- cgit v1.3