all: fix staticcheck warnings (#589)

Co-authored-by: Filippo Valsorda <github@bip.filippo.io>
This commit is contained in:
Alexander Yastrebov
2024-12-18 15:55:57 +01:00
committed by GitHub
parent 176e245b3c
commit cda3988cc7
4 changed files with 3 additions and 6 deletions

View File

@@ -12,7 +12,6 @@ import (
"io"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/poly1305"
)
const ChunkSize = 64 * 1024
@@ -29,7 +28,7 @@ type Reader struct {
}
const (
encChunkSize = ChunkSize + poly1305.TagSize
encChunkSize = ChunkSize + chacha20poly1305.Overhead
lastChunkFlag = 0x01
)