Skip to content

Commit 9be5aaa

Browse files
cuishuanggopherbot
authored andcommitted
all: fix a few function names on comments
Change-Id: Iac9c8f06b874e62b56f634dede8757b87514f421 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/442135 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: Joedian Reid <joedian@golang.org>
1 parent d6f0a8c commit 9be5aaa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bn256/bn256.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ type G2 struct {
162162
p *twistPoint
163163
}
164164

165-
// RandomG1 returns x and g₂ˣ where x is a random, non-zero number read from r.
165+
// RandomG2 returns x and g₂ˣ where x is a random, non-zero number read from r.
166166
func RandomG2(r io.Reader) (*big.Int, *G2, error) {
167167
var k *big.Int
168168
var err error

openpgp/s2k/s2k.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func HashIdToString(id byte) (name string, ok bool) {
268268
return "", false
269269
}
270270

271-
// HashIdToHash returns an OpenPGP hash id which corresponds the given Hash.
271+
// HashToHashId returns an OpenPGP hash id which corresponds the given Hash.
272272
func HashToHashId(h crypto.Hash) (id byte, ok bool) {
273273
for _, m := range hashToHashIdMapping {
274274
if m.hash == h {

ssh/keys.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func ParseKnownHosts(in []byte) (marker string, hosts []string, pubKey PublicKey
184184
return "", nil, nil, "", nil, io.EOF
185185
}
186186

187-
// ParseAuthorizedKeys parses a public key from an authorized_keys
187+
// ParseAuthorizedKey parses a public key from an authorized_keys
188188
// file used in OpenSSH according to the sshd(8) manual page.
189189
func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, err error) {
190190
for len(in) > 0 {

0 commit comments

Comments
 (0)