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

Use an API similar to Nocrypto.Dh #14

Closed emillon closed 5 years ago

emillon commented 5 years ago

This improves the library using an API close to Nocrypto.Dh:

emillon commented 5 years ago

I got rid of the pub key type and added a failwith if allocator returns a cstruct with the wrong length.

hannesm commented 5 years ago

thanks for working on this, i added some minor nits about the documentation of the public interface. otherwise good to go

emillon commented 5 years ago

Thanks for the feedback - this is starting to look good!