Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxPacketSize = 16*1024 - 1 PacketLengthBufferSize = 2 )
https://shadowsocks.org/en/wiki/AEAD-Ciphers.html
View Source
const ( // Overhead // crypto/cipher.gcmTagSize // golang.org/x/crypto/chacha20poly1305.Overhead Overhead = 16 )
Variables ¶
View Source
var ( ErrBadKey = errors.New("bad key") ErrMissingPassword = errors.New("missing password") )
View Source
var AeadCipher = aeadCipher
export AeadCipher function
View Source
var List = []string{
"aes-128-gcm",
"aes-192-gcm",
"aes-256-gcm",
"chacha20-ietf-poly1305",
"xchacha20-ietf-poly1305",
}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.