From 39c6155e0193ff69dcdf765e936487bfcf4f1b17 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 14 Feb 2017 21:20:08 +0100 Subject: 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) --- src/math/equation.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/math/equation.c') 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; } -- cgit v1.2.3-70-g09d2