]> Cypherpunks repositories - gostls13.git/commitdiff
crypto: fix a few function names on comments
authorcui fliter <imcusg@gmail.com>
Thu, 29 Sep 2022 12:56:21 +0000 (12:56 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 29 Sep 2022 22:56:49 +0000 (22:56 +0000)
Change-Id: I06f85f78c4c802142fc9207b100753decd568274
GitHub-Last-Rev: 4ad4c0f5e93df9ea83deb86b814167e661bba0ff
GitHub-Pull-Request: golang/go#55945
Reviewed-on: https://go-review.googlesource.com/c/go/+/436639
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/tls/key_schedule.go
src/crypto/x509/x509.go

index af1f2bd0a85940ca2ba092fbddc99ca6f2e89b36..8150d804a404305da454bf6ffd864b9a736389a5 100644 (file)
@@ -99,7 +99,7 @@ func (c *cipherSuiteTLS13) exportKeyingMaterial(masterSecret []byte, transcript
        }
 }
 
-// generateECDHEParameters returns a PrivateKey that implements Diffie-Hellman
+// generateECDHEKey returns a PrivateKey that implements Diffie-Hellman
 // according to RFC 8446, Section 4.2.8.2.
 func generateECDHEKey(rand io.Reader, curveID CurveID) (*ecdh.PrivateKey, error) {
        curve, ok := curveForCurveID(curveID)
index 7c64761bd7603b11b68cb5a4536fd5265a6a98e3..3c8fc44232eee234a28e07a440f097cf15c37faa 100644 (file)
@@ -976,7 +976,7 @@ var (
        oidAuthorityInfoAccessIssuers = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 48, 2}
 )
 
-// oidNotInExtensions reports whether an extension with the given oid exists in
+// oidInExtensions reports whether an extension with the given oid exists in
 // extensions.
 func oidInExtensions(oid asn1.ObjectIdentifier, extensions []pkix.Extension) bool {
        for _, e := range extensions {