aboutsummaryrefslogtreecommitdiff
path: root/internal/crypt/rawDecrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/crypt/rawDecrypt.go')
-rw-r--r--internal/crypt/rawDecrypt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crypt/rawDecrypt.go b/internal/crypt/rawDecrypt.go
index 6cfea1f..d1f0193 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, 64*1024*1024, 2, 32)
+ key := argon2.IDKey(password, headers.Salt[:], 1, 2*1024*1024, 2, 32)
TryMlock(key)
defer clear(key)
aead, err := chacha20poly1305.New(key)