11 buildDunePackage rec {
15 src = fetchFromGitHub {
17 repo = "ocaml-rfc7748";
19 sha256 = "sha256-mgZooyfxrKBVQFn01B8PULmFUW9Zq5HJfgHCSJSkJo4=";
22 # Compatibility with OCaml 5.0
23 patches = fetchpatch {
24 url = "https://github.com/burgerdev/ocaml-rfc7748/commit/f66257bae0317c7b24c4b208ee27ab6eb68460e4.patch";
25 hash = "sha256-780yy8gLOwwf7xIKIIIaoGpDPcY7+dZ0jPS4nrkH2s8=";
28 minimalOCamlVersion = "4.05";
30 propagatedBuildInputs = [ zarith ];
32 doCheck = lib.versionAtLeast ocaml.version "4.08";
33 checkInputs = [ ounit ];
36 homepage = "https://github.com/burgerdev/ocaml-rfc7748";
37 description = "Elliptic Curve Diffie-Hellman on Edwards Curves (X25519, X448)";
39 This library implements the ECDH functions 'X25519' and 'X448' as specified
40 in RFC 7748, 'Elliptic curves for security'. In the spirit of the original
41 publications, the public API is kept as simple as possible to make it easy
42 to use and hard to misuse.
44 license = lib.licenses.bsd2;
45 maintainers = with lib.maintainers; [ fufexan ];