]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: fix CurvePreferences comment
authorSimon Deziel <simon@sdeziel.info>
Wed, 11 Feb 2026 21:00:12 +0000 (21:00 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 12 Feb 2026 17:27:43 +0000 (09:27 -0800)
SecP256r1MLKEM768 appeared twice while the second should have been
SecP384r1MLKEM1024.

Change-Id: I0587b53248d2948fe7a33313871c39fe76251e9c
GitHub-Last-Rev: de535819a33347feacfaa32d984ce58d206613d0
GitHub-Pull-Request: golang/go#77551
Reviewed-on: https://go-review.googlesource.com/c/go/+/744481
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Auto-Submit: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/tls/common.go

index ebaeb385aa6a3916e358216cf3e637d3d7d23336..f38a43829a0998a9cbd23ac0c4608478bcacb855 100644 (file)
@@ -807,7 +807,7 @@ type Config struct {
        // or use the GODEBUG=tlsmlkem=0 environment variable.
        //
        // From Go 1.26, the default includes the [SecP256r1MLKEM768] and
-       // [SecP256r1MLKEM768] hybrid post-quantum key exchanges, too. To disable
+       // [SecP384r1MLKEM1024] hybrid post-quantum key exchanges, too. To disable
        // them, set CurvePreferences explicitly or use either the
        // GODEBUG=tlsmlkem=0 or the GODEBUG=tlssecpmlkem=0 environment variable.
        CurvePreferences []CurveID