use Curve25519 for ECDH and tweetnacl where we can
authorFlorian Dold <florian.dold@gmail.com>
Tue, 26 Nov 2019 17:26:54 +0000 (18:26 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Tue, 26 Nov 2019 17:29:56 +0000 (18:29 +0100)
commitbc340979c19807c76baedc7da98778178b9bcc4a
treec7e0e017a441ea5bc13d9e165417c5156e390c9b
parentc36c37830eb909fe73357383136cf8b2405d9633
use Curve25519 for ECDH and tweetnacl where we can

This leads to some performance improvements and makes it easier to write
software that interoperates with GNUnet / GNU Taler.  It also avoids
using the rather inconvenient libgcrypt APIs.  We still need to keep
libgcrypt though, as we need it for RSA, ECDSA and some other
primitives.

This change is still behind a #define NEW_CRYPTO, as it is a breaking
change for both EdDSA (removing the superfluous additional hash) and for
ECDHE (using Curve25519 instead of Ed25519).
src/util/Makefile.am
src/util/crypto_ecc.c
src/util/tweetnacl-gnunet.c [new file with mode: 0644]
src/util/tweetnacl-gnunet.h [new file with mode: 0644]