mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
The QUIC interop test suite confirms support for ChaCha20. Go's TLS implementation doesn't allow configuring ciphersuites for TLS 1.3, so we cannot force the client hello to offer only ChaCha20 as the test requires. When acting as a server, we still cannot control which ciphersuites we offer, but we can make the binary choice of whether we respond to the client hello (which includes its offer of ciphersuites). Use that to implement the server side of the ChaCha20 interop test. This tells a more complete story of our level of ChaCha20 support: it works when negotiated. Fixes golang/go#75912 Change-Id: I1d8d08e4f4b8eb89bf11e9e4ae1aaa5c0709a530 Reviewed-on: https://go-review.googlesource.com/c/net/+/712120 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Damien Neil <dneil@google.com>