mirage / hacl

Archived. Curve25519 support has been integrated into mirage-crypto-ec (via fiat-crypto). Hacl bindings are available from the hacl-star opam package. OCaml bindings for HACL* elliptic curves
https://github.com/mirage/mirage-crypto
Other
20 stars 5 forks source link

provide Hacl_x25519.encode_secret and Hacl_ed25519.encode_priv functions to serialise private keys onto disk #41

Closed hannesm closed 4 years ago

hannesm commented 4 years ago

this is to support writing private key files, as defined by OpenSSH (https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.bin/ssh/PROTOCOL.key?rev=1.1&content-type=text/plain -- which for some reason dumps 64 byte) and X.509 pem (RFC8410 specifies the OID for X25519 and Ed25519).

to unblock #39