Skip to content

crypto/x509: MarshalPKCS8PrivateKey doc says RSA private key while it supports more than that #36735

Description

@gmichelo

Doc of x509.MarshalPKCS8PrivateKey says:

MarshalPKCS8PrivateKey converts an RSA private key to PKCS#8, ASN.1 DER form.

But immediately after doc says that it also supports ECDSA and ED25519 key types:

The following key types are currently supported: *rsa.PrivateKey, *ecdsa.PrivateKey and ed25519.PrivateKey. Unsupported key types result in an error.

I think that the "RSA" word in first line should be removed.

If this is confirmed, I can take care of this doc fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions