summaryrefslogtreecommitdiff
path: root/ext/ed25519-amd64-asm/ge25519_add.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ed25519-amd64-asm/ge25519_add.c')
-rw-r--r--ext/ed25519-amd64-asm/ge25519_add.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ed25519-amd64-asm/ge25519_add.c b/ext/ed25519-amd64-asm/ge25519_add.c
new file mode 100644
index 00000000..c4d1c68a
--- /dev/null
+++ b/ext/ed25519-amd64-asm/ge25519_add.c
@@ -0,0 +1,8 @@
+#include "ge25519.h"
+
+void ge25519_add(ge25519_p3 *r, const ge25519_p3 *p, const ge25519_p3 *q)
+{
+ ge25519_p1p1 grp1p1;
+ ge25519_add_p1p1(&grp1p1, p, q);
+ ge25519_p1p1_to_p3(r, &grp1p1);
+}