crypto/x509: Reference SubjectPublicKeyInfo in MarshalPKIXPublicKey #35313
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The godoc for MarshalPKIXPublicKey and ParsePKIXPublicKey say, e.g. "ParsePKIXPublicKey parses a public key in PKIX, ASN.1 DER form." However, PKIX (RFC 5280), does not define a "public key" type. Instead, it defines a SubjectPublicKeyInfo type, which is what these methods are using. The docs should reference the more specific type name, and link straight to the RFC 5280 documentation for clarity.
As an aside, the ParseECPrivateKey docs incorrectly say "ParseECPrivateKey parses an EC public key".
If the Go team agrees this is a positive change, I'm happy to send a change.
The text was updated successfully, but these errors were encountered: