]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix godoc for MarshalPKCS8PrivateKey
authorKatie Hockman <katie@golang.org>
Wed, 5 Feb 2020 19:18:20 +0000 (14:18 -0500)
committerKatie Hockman <katie@golang.org>
Wed, 5 Feb 2020 21:53:13 +0000 (21:53 +0000)
Fixes #36735

Change-Id: I93f005d78f4bfac773272995b165172461bae92f
Reviewed-on: https://go-review.googlesource.com/c/go/+/217917
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/pkcs8.go

index d37fc9e1b3fedf13caca4cb06b8a94a515ca9610..ec4ab10c5733f54d6608e87148a2455072d560d3 100644 (file)
@@ -79,7 +79,7 @@ func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error) {
        }
 }
 
-// MarshalPKCS8PrivateKey converts an RSA private key to PKCS#8, ASN.1 DER form.
+// MarshalPKCS8PrivateKey converts a private key to PKCS#8, ASN.1 DER form.
 //
 // The following key types are currently supported: *rsa.PrivateKey, *ecdsa.PrivateKey
 // and ed25519.PrivateKey. Unsupported key types result in an error.