summaryrefslogtreecommitdiff
path: root/gp-scripts
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-17 10:30:33 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-17 10:30:33 +0200
commite6bb15b589e14745e7794a4df43e90cc1e179f7f (patch)
tree6509c0b76d913bce0bcaa9508f8507b502906c9c /gp-scripts
parent761dd37e1f905719df2cd8f4420e4b46da80bffb (diff)
add gp setup script for curve25519 (not Ed25519!)
Diffstat (limited to 'gp-scripts')
-rw-r--r--gp-scripts/curve255196
1 files changed, 6 insertions, 0 deletions
diff --git a/gp-scripts/curve25519 b/gp-scripts/curve25519
new file mode 100644
index 0000000..f0228eb
--- /dev/null
+++ b/gp-scripts/curve25519
@@ -0,0 +1,6 @@
+q = 2^255-19
+E = ellinit(Mod([0, 486662, 0, 1, 0], q), Mod(1, q))
+u = Mod(9, q)
+v = sqrt(u^3 + 486662*u^2 + u)
+g = [u, v]
+o = 2^252 + 27742317777372353535851937790883648493