diff options
author | Katie Hockman <katie@golang.org> | 2020-02-05 14:18:20 -0500 |
---|---|---|
committer | Katie Hockman <katie@golang.org> | 2020-02-05 22:18:49 +0000 |
commit | 3f0cdedfdd4fe7531c49a29abb1824939d84d3bb (patch) | |
tree | b82cdad9372a1ee7ccb376719fda7bc935824f8e | |
parent | a068054af141c01df5a4519844f4b77273605f4e (diff) | |
download | go-3f0cdedfdd4fe7531c49a29abb1824939d84d3bb.tar.gz go-3f0cdedfdd4fe7531c49a29abb1824939d84d3bb.zip |
[release-branch.go1.14] crypto/x509: fix godoc for MarshalPKCS8PrivateKey
Updates #36735
Fixes #37068
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>
(cherry picked from commit 7a36fa400286ca51192a7661a7ffbf9a39c396b3)
Reviewed-on: https://go-review.googlesource.com/c/go/+/217999
-rw-r--r-- | src/crypto/x509/pkcs8.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509/pkcs8.go b/src/crypto/x509/pkcs8.go index d37fc9e1b3..ec4ab10c57 100644 --- a/src/crypto/x509/pkcs8.go +++ b/src/crypto/x509/pkcs8.go @@ -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. |