Skip to content

Commit

Permalink
Update shadowsocks/cipher.go
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>
  • Loading branch information
fortuna and Benjamin M. Schwartz committed Oct 6, 2020
1 parent ea6d350 commit ad01a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shadowsocks/cipher.go
Expand Up @@ -44,7 +44,7 @@ type aeadSpec struct {
}

// List of supported AEAD ciphers, as specified at https://shadowsocks.org/en/spec/AEAD-Ciphers.html
var supportedAEADs = []aeadSpec{
var supportedAEADs = [...]aeadSpec{
newAeadSpec("chacha20-ietf-poly1305", chacha20poly1305.New, chacha20poly1305.KeySize),
newAeadSpec("aes-256-gcm", newAesGCM, 32),
newAeadSpec("aes-192-gcm", newAesGCM, 24),
Expand Down

0 comments on commit ad01a2c

Please sign in to comment.