Skip to content

crypto/x509: incorrect mention of "EC Public Key" for ParseECPrivateKey docs, should be "EC Private Key" #36788

Description

@matthew119427

What version of Go are you using (go version)?

$ go version 1.13.5

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Manjaro Linux x64

What did you expect to see?

Documentation should read This kind of key is commonly encoded in PEM blocks of type "EC PRIVATE KEY".

What did you see instead?

The documentation for x509#ParseECPrivateKey states This kind of key is commonly encoded in PEM blocks of type "EC PUBLIC KEY"., however we're parsing a private key here, the block wouldn't be "EC PUBLIC KEY".
image

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.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions