diff options
| author | J08nY | 2017-02-14 21:20:08 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-14 21:20:08 +0100 |
| commit | 39c6155e0193ff69dcdf765e936487bfcf4f1b17 (patch) | |
| tree | 93230b214c64951ded6451f439f304ccca02b7e0 /src/math/equation.c | |
| parent | 0c5ff628d52678bb44b9c595daf1289833d0e532 (diff) | |
| download | ecgen-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.c | 2 |
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; } |
