mirror of https://github.com/golang/go.git
crypto: fix a few function names on comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
690851ee3e
commit
4ad4c0f5e9
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue