diff options
| author | cui fliter <imcusg@gmail.com> | 2022-10-11 20:07:36 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-12 13:45:58 +0000 |
| commit | 9be5aaad42d5e8b858864f1bec7f0fb3844130a9 (patch) | |
| tree | dc95ed4430274ea79b65c495fa09dc1c9b319188 | |
| parent | d6f0a8c073c28df7d0a9b3c8f4206a8f72b341e4 (diff) | |
| download | go-x-crypto-9be5aaad42d5e8b858864f1bec7f0fb3844130a9.tar.xz | |
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>
| -rw-r--r-- | bn256/bn256.go | 2 | ||||
| -rw-r--r-- | openpgp/s2k/s2k.go | 2 | ||||
| -rw-r--r-- | ssh/keys.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bn256/bn256.go b/bn256/bn256.go index 9c99fcd..5d6d198 100644 --- a/bn256/bn256.go +++ b/bn256/bn256.go @@ -162,7 +162,7 @@ type G2 struct { p *twistPoint } -// RandomG1 returns x and g₂ˣ where x is a random, non-zero number read from r. +// RandomG2 returns x and g₂ˣ where x is a random, non-zero number read from r. func RandomG2(r io.Reader) (*big.Int, *G2, error) { var k *big.Int var err error diff --git a/openpgp/s2k/s2k.go b/openpgp/s2k/s2k.go index 9de0495..f53244a 100644 --- a/openpgp/s2k/s2k.go +++ b/openpgp/s2k/s2k.go @@ -268,7 +268,7 @@ func HashIdToString(id byte) (name string, ok bool) { return "", false } -// HashIdToHash returns an OpenPGP hash id which corresponds the given Hash. +// HashToHashId returns an OpenPGP hash id which corresponds the given Hash. func HashToHashId(h crypto.Hash) (id byte, ok bool) { for _, m := range hashToHashIdMapping { if m.hash == h { diff --git a/ssh/keys.go b/ssh/keys.go index 1c7de1a..7296980 100644 --- a/ssh/keys.go +++ b/ssh/keys.go @@ -184,7 +184,7 @@ func ParseKnownHosts(in []byte) (marker string, hosts []string, pubKey PublicKey return "", nil, nil, "", nil, io.EOF } -// ParseAuthorizedKeys parses a public key from an authorized_keys +// ParseAuthorizedKey parses a public key from an authorized_keys // file used in OpenSSH according to the sshd(8) manual page. func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, err error) { for len(in) > 0 { |
