diff options
| author | ishaan <contact@ishaan.cc> | 2026-07-15 07:02:28 +0530 |
|---|---|---|
| committer | ishaan <contact@ishaan.cc> | 2026-07-15 07:02:28 +0530 |
| commit | ec61b98520abce8d2352172e796191b1829ab5f4 (patch) | |
| tree | 9f9349478d70590829f8df3bbf183d31490769ed /internal/crypt/rawDecrypt.go | |
| parent | aed1dd45b71d061848e52fbf1b36dd09a52e0021 (diff) | |
make Mlock fail fatal, better argon2 memory
Diffstat (limited to 'internal/crypt/rawDecrypt.go')
| -rw-r--r-- | internal/crypt/rawDecrypt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crypt/rawDecrypt.go b/internal/crypt/rawDecrypt.go index d1f0193..6cfea1f 100644 --- a/internal/crypt/rawDecrypt.go +++ b/internal/crypt/rawDecrypt.go @@ -39,7 +39,7 @@ func DecryptBytesPass(inputBytes []byte, password []byte) ([]byte, error) { return nil, fmt.Errorf("decrypt: expected password auth, got %s", headers.Auth) } - 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) |