]> git.ipfire.org Git - thirdparty/tor.git/commit
Add a wrapper around, and test and build support for, curve25519.
authorNick Mathewson <nickm@torproject.org>
Mon, 3 Dec 2012 20:44:21 +0000 (15:44 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 Jan 2013 19:10:48 +0000 (14:10 -0500)
commit89ec584805bfba76609a1191eb6789fc0e24bdae
tree4b05bf749b0388d35cf52bce3eca37b2ebbd9b03
parentf06966023a4000de24feebaa2ca8438abb10c16c
Add a wrapper around, and test and build support for, curve25519.

We want to use donna-c64 when we have a GCC with support for
64x64->uint128_t multiplying.  If not, we want to use libnacl if we
can, unless it's giving us the unsafe "ref" implementation.  And if
that isn't going to work, we'd like to use the
portable-and-safe-but-slow 32-bit "donna" implementation.

We might need more library searching for the correct libnacl,
especially once the next libnacl release is out -- it's likely to have
bunches of better curve25519 implementations.

I also define a set of curve25519 wrapper functions, though it really
shouldn't be necessary.

We should eventually make the -donna*.c files get build with
-fomit-frame-pointer, since that can make a difference.
configure.ac
src/common/crypto_curve25519.c [new file with mode: 0644]
src/common/crypto_curve25519.h [new file with mode: 0644]
src/common/include.am
src/test/test_crypto.c