mirror of
https://github.com/golang/go
synced 2024-11-17 11:24:51 -07:00
crypto/x509: fix typo in godoc for ParseECPrivateKey
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>
This commit is contained in:
parent
8c51b665f0
commit
ee04dbf430
@ -28,9 +28,9 @@ type ecPrivateKey struct {
|
|||||||
PublicKey asn1.BitString `asn1:"optional,explicit,tag:1"`
|
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) {
|
func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) {
|
||||||
return parseECPrivateKey(nil, der)
|
return parseECPrivateKey(nil, der)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user