From dfaed7ff19ae7df126b33ca3efa39dd9e0a3fe91 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Thu, 15 Mar 2018 10:28:43 -0500 Subject: [PATCH] crypto/x509: clarify accepted keys for MarshalPKCS8PrivateKey Fixes #24413. Change-Id: I265088c9ddc624cb3b3132087cc3d4baf95d2777 Reviewed-on: https://go-review.googlesource.com/100839 Reviewed-by: Filippo Valsorda --- src/crypto/x509/pkcs8.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/x509/pkcs8.go b/src/crypto/x509/pkcs8.go index eb051b6e11..fb1340c6df 100644 --- a/src/crypto/x509/pkcs8.go +++ b/src/crypto/x509/pkcs8.go @@ -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. -- 2.50.0