mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-03 10:55:14 +00:00
all: fix staticcheck warnings (#589)
Co-authored-by: Filippo Valsorda <github@bip.filippo.io>
This commit is contained in:
committed by
GitHub
parent
176e245b3c
commit
cda3988cc7
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user