aboutsummaryrefslogtreecommitdiff
path: root/src/gp
diff options
context:
space:
mode:
authorJ08nY2017-02-14 21:20:08 +0100
committerJ08nY2017-02-14 21:20:08 +0100
commit39c6155e0193ff69dcdf765e936487bfcf4f1b17 (patch)
tree93230b214c64951ded6451f439f304ccca02b7e0 /src/gp
parent0c5ff628d52678bb44b9c595daf1289833d0e532 (diff)
downloadecgen-39c6155e0193ff69dcdf765e936487bfcf4f1b17.tar.gz
ecgen-39c6155e0193ff69dcdf765e936487bfcf4f1b17.tar.zst
ecgen-39c6155e0193ff69dcdf765e936487bfcf4f1b17.zip
Added point generation:
- Prime order points for all prime divisors of curve order (all prime subgroups) - Random points - Minimal set of generators of the whole group (one or two points)
Diffstat (limited to 'src/gp')
-rw-r--r--src/gp/gp.gp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gp/gp.gp b/src/gp/gp.gp
index 9bae867..8c245a9 100644
--- a/src/gp/gp.gp
+++ b/src/gp/gp.gp
@@ -6,4 +6,10 @@
/*
\r gp/utils
\r gp/invalid
-*/ \ No newline at end of file
+*/
+
+test() = {
+ local(e:ell, p, i:int);
+ p = random(e);
+ i = p[1];
+} \ No newline at end of file