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:
Adam Shannon 2018-03-15 10:28:43 -05:00 committed by Filippo Valsorda
parent 1c24ffbf93
commit dfaed7ff19
1 changed files with 1 additions and 1 deletions

View File

@ -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.