Skip to content

Commit

Permalink
crypto/x509: fix typo in godoc for ParseECPrivateKey
Browse files Browse the repository at this point in the history
Change-Id: Ia65bac00fe8600f50620ce0583455eb33f06ff95
Reviewed-on: https://go-review.googlesource.com/c/go/+/207918
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
  • Loading branch information
katiehockman authored and FiloSottile committed Nov 20, 2019
1 parent 8c51b66 commit ee04dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/x509/sec1.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type ecPrivateKey struct {
PublicKey asn1.BitString `asn1:"optional,explicit,tag:1"`
}

// ParseECPrivateKey parses an EC public key in SEC 1, ASN.1 DER form.
// ParseECPrivateKey parses an EC private key in SEC 1, ASN.1 DER form.
//
// This kind of key is commonly encoded in PEM blocks of type "EC PUBLIC KEY".
// This kind of key is commonly encoded in PEM blocks of type "EC PRIVATE KEY".
func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) {
return parseECPrivateKey(nil, der)
}
Expand Down

0 comments on commit ee04dbf

Please sign in to comment.