From b40ac6808f8a31f2f95de435036a6a7af111fdff Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 26 Aug 2014 10:08:44 -0400 Subject: 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. --- src/ext/ed25519/ref10/ge_p3_dbl.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/ext/ed25519/ref10/ge_p3_dbl.c (limited to 'src/ext/ed25519/ref10/ge_p3_dbl.c') diff --git a/src/ext/ed25519/ref10/ge_p3_dbl.c b/src/ext/ed25519/ref10/ge_p3_dbl.c new file mode 100644 index 0000000000..0d8a05915d --- /dev/null +++ b/src/ext/ed25519/ref10/ge_p3_dbl.c @@ -0,0 +1,12 @@ +#include "ge.h" + +/* +r = 2 * p +*/ + +void ge_p3_dbl(ge_p1p1 *r,const ge_p3 *p) +{ + ge_p2 q; + ge_p3_to_p2(&q,p); + ge_p2_dbl(r,&q); +} -- cgit v1.2.3-54-g00ecf