Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fixed bug in downloading file

Neeraj Guptaaf34bb945371
diff --git a/internal/crypto/crypto_libsodium.go b/internal/crypto/crypto_libsodium.go
index 662e9ffcc7..2c777b2c43 100644
--- a/internal/crypto/crypto_libsodium.go
+++ b/internal/crypto/crypto_libsodium.go
@@ -173,7 +173,7 @@ func DecryptFile(encryptedFilePath string, decryptedFilePath string, key, nonce
return err
}
- buf := make([]byte, decryptionBufferSize)
+ buf := make([]byte, decryptionBufferSize+XChaCha20Poly1305IetfABYTES)
for {
readCount, err := reader.Read(buf)
if err != nil && err != io.EOF {