mirror of https://github.com/golang/go.git
crypto/x509: clarify accepted keys for MarshalPKCS8PrivateKey
Fixes #24413. Change-Id: I265088c9ddc624cb3b3132087cc3d4baf95d2777 Reviewed-on: https://go-review.googlesource.com/100839 Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
parent
1c24ffbf93
commit
dfaed7ff19
|
|
@ -56,7 +56,7 @@ func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error) {
|
|||
}
|
||||
|
||||
// MarshalPKCS8PrivateKey converts a private key to PKCS#8 encoded form.
|
||||
// The following key types are supported: *rsa.PrivateKey, *ecdsa.PublicKey.
|
||||
// The following key types are supported: *rsa.PrivateKey, *ecdsa.PrivateKey.
|
||||
// Unsupported key types result in an error.
|
||||
//
|
||||
// See RFC 5208.
|
||||
|
|
|
|||
Loading…
Reference in New Issue