Closed hannesm closed 4 years ago
@dinosaure this is the minimum path for ed25519 support (using the very same commit of extracted hacl as done in curve_25519), it does not fix 32 bit support, neither use an updated extraction from hacl. I agree that this could be done, but IMHO deserves a separate PR. I agree that #19 and #20 should be improved. The test vectors from 8032 - part of this PR - are useful for updating the extraction as well.
Ok, in any case, I did the extraction so I will integrate the new version of Ed25519 too in a separate PR.
this PR adds
Hacl_ed25519
, and imports the C source from the same commit and branch. Ed25519 can be used by at least ssh private keys and X.509 certificates -- here the primitives "generate key", "sign", and "verify" are provided, to be used by libraries doing actual decoding / encoding.The tests from RFC 8032 are copy and pasted into a separate test module (I did not understand how the current test suite is supposed to be run / executed).
Sponsored by Nitrokey GmbH