From 85e84a49e45df6523d10da485ac5dd0ef7b74926 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 14 Nov 2022 20:29:26 +0000 Subject: [PATCH] crypto/tls: remove unused nonAESGCMAEADCiphers variable It was no longer used since CL 314609 Change-Id: Id103b7490a6088a589d76442d3740f8a1453c25d GitHub-Last-Rev: 20a7fe0778fbfcfd789a194456e87dd4a60b655e GitHub-Pull-Request: golang/go#56608 Reviewed-on: https://go-review.googlesource.com/c/go/+/448277 Reviewed-by: Roland Shoemaker Reviewed-by: Cherry Mui Run-TryBot: Dmitri Shuralyov TryBot-Result: Gopher Robot Auto-Submit: Dmitri Shuralyov --- src/crypto/tls/cipher_suites.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/crypto/tls/cipher_suites.go b/src/crypto/tls/cipher_suites.go index 04e6dfe018..589e8b6faf 100644 --- a/src/crypto/tls/cipher_suites.go +++ b/src/crypto/tls/cipher_suites.go @@ -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 { -- 2.48.1