aboutsummaryrefslogtreecommitdiff
path: root/src/ext/include.am
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-07-06 09:40:28 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-07-06 09:40:28 +0000
commit0f3eeca9b80ff42cf17f9d8b1b4b45588ea9fbad (patch)
treebf5f5787dbc922bb4ee4c3bd994988d5b1a3ca2a /src/ext/include.am
parent7b10741be4280d84a7ac9f41c54380cbc1f09c1b (diff)
downloadtor-0f3eeca9b80ff42cf17f9d8b1b4b45588ea9fbad.tar.gz
tor-0f3eeca9b80ff42cf17f9d8b1b4b45588ea9fbad.zip
Integrate ed25519-donna (Not yet used).
Integrate ed25519-donna into the build process, and provide an interface that matches the `ref10` code. Apart from the blinding and Curve25519 key conversion, this functions as a drop-in replacement for ref10 (verified by modifying crypto_ed25519.c). Tests pass, and the benchmarks claim it is quite a bit faster, however actually using the code requires additional integration work.
Diffstat (limited to 'src/ext/include.am')
-rw-r--r--src/ext/include.am41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ext/include.am b/src/ext/include.am
index 40923aa93e..ea8f0bcb28 100644
--- a/src/ext/include.am
+++ b/src/ext/include.am
@@ -93,3 +93,44 @@ noinst_HEADERS += $(ED25519_REF10_HDRS)
LIBED25519_REF10=src/ext/ed25519/ref10/libed25519_ref10.a
noinst_LIBRARIES += $(LIBED25519_REF10)
+src_ext_ed25519_donna_libed25519_donna_a_CFLAGS= \
+ -DED25519_CUSTOMRANDOM \
+ -DED25519_SUFFIX=_donna
+
+src_ext_ed25519_donna_libed25519_donna_a_SOURCES= \
+ src/ext/ed25519/donna/ed25519_tor.c
+
+ED25519_DONNA_HDRS = \
+ src/ext/ed25519/donna/curve25519-donna-32bit.h \
+ src/ext/ed25519/donna/curve25519-donna-64bit.h \
+ src/ext/ed25519/donna/curve25519-donna-helpers.h \
+ src/ext/ed25519/donna/curve25519-donna-sse2.h \
+ src/ext/ed25519/donna/ed25519-donna-32bit-sse2.h \
+ src/ext/ed25519/donna/ed25519-donna-32bit-tables.h \
+ src/ext/ed25519/donna/ed25519-donna-64bit-sse2.h \
+ src/ext/ed25519/donna/ed25519-donna-64bit-tables.h \
+ src/ext/ed25519/donna/ed25519-donna-64bit-x86-32bit.h \
+ src/ext/ed25519/donna/ed25519-donna-64bit-x86.h \
+ src/ext/ed25519/donna/ed25519-donna-basepoint-table.h \
+ src/ext/ed25519/donna/ed25519-donna-batchverify.h \
+ src/ext/ed25519/donna/ed25519-donna.h \
+ src/ext/ed25519/donna/ed25519-donna-impl-base.h \
+ src/ext/ed25519/donna/ed25519-donna-impl-sse2.h \
+ src/ext/ed25519/donna/ed25519-donna-portable.h \
+ src/ext/ed25519/donna/ed25519-donna-portable-identify.h \
+ src/ext/ed25519/donna/ed25519_donna_tor.h \
+ src/ext/ed25519/donna/ed25519.h \
+ src/ext/ed25519/donna/ed25519-hash-custom.h \
+ src/ext/ed25519/donna/ed25519-hash.h \
+ src/ext/ed25519/donna/ed25519-randombytes-custom.h \
+ src/ext/ed25519/donna/ed25519-randombytes.h \
+ src/ext/ed25519/donna/modm-donna-32bit.h \
+ src/ext/ed25519/donna/modm-donna-64bit.h \
+ src/ext/ed25519/donna/regression.h \
+ src/ext/ed25519/donna/test-ticks.h
+
+noinst_HEADERS += $(ED25519_DONNA_HDRS)
+
+LIBED25519_DONNA=src/ext/ed25519/donna/libed25519_donna.a
+noinst_LIBRARIES += $(LIBED25519_DONNA)
+