aboutsummaryrefslogtreecommitdiff
path: root/src/math/equation.c
diff options
context:
space:
mode:
authorJ08nY2017-02-14 21:20:08 +0100
committerJ08nY2017-02-14 21:20:08 +0100
commit39c6155e0193ff69dcdf765e936487bfcf4f1b17 (patch)
tree93230b214c64951ded6451f439f304ccca02b7e0 /src/math/equation.c
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/math/equation.c')
-rw-r--r--src/math/equation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/equation.c b/src/math/equation.c
index 4e44747..1e29ee4 100644
--- a/src/math/equation.c
+++ b/src/math/equation.c
@@ -20,6 +20,7 @@ int a_random(curve_t *curve, config_t *config, ...) {
int a_input(curve_t *curve, config_t *config, ...) {
curve->a = fread_int(in, "a:", config->bits);
+ // TODO change a to a field element here?. a t_INTMOD or a t_FFELT.
return 1;
}
@@ -42,6 +43,7 @@ int b_random(curve_t *curve, config_t *config, ...) {
int b_input(curve_t *curve, config_t *config, ...) {
curve->b = fread_int(in, "b:", config->bits);
+ // TODO change b to a field element here?. a t_INTMOD or a t_FFELT.
return 1;
}