A meh refactoring of TweetNaCl Curve25519.
The original library was slightly obfuscated and hard to read. This is the Curve25519 part required for ECDH computations extracted and refactored from the code available at http://tweetnacl.cr.yp.to/20140427/tweetnacl.c
Based on the TweetNaCl library by Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, Peter Schwabe and Sjaak Smetsers placed into a public domain. More information can be found at http://tweetnacl.cr.yp.to/.
A C99 compatible compiler is required.
(c) 2015, Marek Koza CC0 public domain, http://creativecommons.org/publicdomain/zero/1.0/
To the extent possible under law, the person who associated CC0 with this work has waived all copyright and related or neighboring rights to this work.