rfc7748

Edwards Curves X25519 and X448 from RFC 7748
README

Elliptic curves for cryptographic purposes, based on RFC 7748.

Usage

The API contains documentation. Example use:

open Rfc7748

let _ =
  let priv = X25519.private_key_of_string
      "a546e36bf0527c9d3b16154b82465edd62144c0ac1fc5a18506a2244ba449ac4" in
  let pub = X25519.public_key_of_string
      "e6db6867583030db3594c1a424b15f7c726624ec26b3353b10a903a6d0ab1c4c" in
  X25519.scale priv pub
  |> X25519.string_of_public_key
  |> Printf.printf "c3da55379de9c6908e94ea4df28d084f32eccf03491c71f754b4075577a28552\n == \n%s"

License

BSD 2-clause, see license.

Install
Published
06 Dec 2018
Sources
v1.0-rc2.tar.gz
md5=63d367245f45171feb8ee7027e0b2ace
Dependencies
ounit
with-test & >= "2.0.5"
dune
>= "1.2.1"
zarith
>= "1.5"
ocaml
>= "4.03"
Reverse Dependencies