From 4da5d50737cf1465553ede75d9f321c047ef5b21 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 29 Sep 2022 12:56:21 +0000 Subject: [PATCH] crypto: fix a few function names on comments 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 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- key_schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key_schedule.go b/key_schedule.go index af1f2bd..8150d80 100644 --- a/key_schedule.go +++ b/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)