aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/fe_invert.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-26 10:08:44 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-26 10:08:44 -0400
commitb40ac6808f8a31f2f95de435036a6a7af111fdff (patch)
treea668d3a32778547b5f91086507cb6be56ab9cad9 /src/ext/ed25519/ref10/fe_invert.c
parentfdb7fc70d03d21d967db4928960241a624483a24 (diff)
downloadtor-b40ac6808f8a31f2f95de435036a6a7af111fdff.tar.gz
tor-b40ac6808f8a31f2f95de435036a6a7af111fdff.zip
Add the ed25519 ref10 code verbatim from supercop-20140622
We might use libsodium or ed25519-donna later on, but for now, let's see whether this is fast enough. We should use it in all cases when performance doesn't matter.
Diffstat (limited to 'src/ext/ed25519/ref10/fe_invert.c')
-rw-r--r--src/ext/ed25519/ref10/fe_invert.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/fe_invert.c b/src/ext/ed25519/ref10/fe_invert.c
new file mode 100644
index 0000000000..bcfdb8ff87
--- /dev/null
+++ b/src/ext/ed25519/ref10/fe_invert.c
@@ -0,0 +1,14 @@
+#include "fe.h"
+
+void fe_invert(fe out,const fe z)
+{
+ fe t0;
+ fe t1;
+ fe t2;
+ fe t3;
+ int i;
+
+#include "pow225521.h"
+
+ return;
+}