1
0
mirror of https://github.com/golang/go synced 2024-11-22 22:30:02 -07:00

crypto/tls: remove unused nonAESGCMAEADCiphers variable

It was no longer used since CL 314609
This commit is contained in:
Sebastiaan van Stijn 2022-11-06 13:37:03 +01:00
parent 0f0aa5d8a6
commit 20a7fe0778
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -377,14 +377,6 @@ var aesgcmCiphers = map[uint16]bool{
TLS_AES_256_GCM_SHA384: true,
}
var nonAESGCMAEADCiphers = map[uint16]bool{
// TLS 1.2
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305: true,
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305: true,
// TLS 1.3
TLS_CHACHA20_POLY1305_SHA256: true,
}
// aesgcmPreferred returns whether the first known cipher in the preference list
// is an AES-GCM cipher, implying the peer has hardware support for it.
func aesgcmPreferred(ciphers []uint16) bool {