Hacker News new | ask | show | jobs
by sScTE9qEMCxEk34 979 days ago
> Are we to the point yet that a group with clout can just go write "the standard" representation

I mean, isn't that `-----BEGIN .* PRIVATE KEY-----`? Also obligatory XKCD https://xkcd.com/927/

1 comments

PKCS 1 and 8 are both DER encoded which uses ASN.1, which the parent post was looking to avoid.
Except the parent post explicitly only cares about the type of key, which you don't need to parse the ASN.1 to know.

> a key use tag? Then each algorithm standard specifies it's own format for a blob of bytes that developers not doing serialization don't have to worry about?

As a developer passing blobs around, you already don't need to care that they're ASN.1, but you can care that you see a private key sitting around.

PS: and more than just X.509 uses those style of headers, too...