This package implements minimal bindings to the curve25519 diffie-hellman function. It should be relatively easy to both depend on, or include outright in your executable/package itself.
The underlying implementation is the ref
code from SUPERCOP,
which was originally implemented by Dan J. Bernstein.
It's just a cabal install
away on Hackage:
$ cabal install curve25519
Be sure to read the contributing guidelines. File bugs in the GitHub issue tracker.
Master git repository:
git clone https://github.com/thoughtpolice/hs-curve25519.git
There's also a BitBucket mirror:
git clone https://bitbucket.org/thoughtpolice/hs-curve25519.git
See AUTHORS.txt.
MIT. See LICENSE.txt for terms of copyright and redistribution.