]> src.bluestatic.org Git - macgdbp.git/commit
signer-ed25519: DER-encode the public and private keys.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Nov 2020 22:55:41 +0000 (17:55 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Nov 2020 22:55:41 +0000 (17:55 -0500)
commit26396882740c1a2460e54d773b155c396454df9f
treeedfcc97490fddc6b5975454c0a3b18ee9855e7c3
parent68f357e14f4c8e829b1c85e1fa832ea2e15e1542
signer-ed25519: DER-encode the public and private keys.

The first version of the tool just put the raw key bytes into the PEM
block, which is nonstandard. Use PCKS8 and PKIX to encode the private
and public parts, respectively, which will be compatible with
OpenSSL 3.0. This uses a separate PEM header to disambiguate between the
old form and the new form.
dev/asn1-wrap-ed25519.go
dev/openssl-sign-ed25519.cc [deleted file]
dev/signer-ed25519.go