diff --git a/src/crypto/tls/key_schedule.go b/src/crypto/tls/key_schedule.go index af1f2bd0a8..8150d804a4 100644 --- a/src/crypto/tls/key_schedule.go +++ b/src/crypto/tls/key_schedule.go @@ -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) diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 7c64761bd7..3c8fc44232 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -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 {