aboutsummaryrefslogtreecommitdiff
path: root/src/exhaustive
diff options
context:
space:
mode:
authorJ08nY2017-06-01 01:42:33 +0200
committerJ08nY2017-06-01 01:43:04 +0200
commit63427ed3415b25bd29c5e1fe71ef9883d955bfcf (patch)
treed8698513de9899b32004b2906fe071fcca2fc023 /src/exhaustive
parent637702cb14fe7133f3cffe58eaaca4186d67fc43 (diff)
downloadecgen-63427ed3415b25bd29c5e1fe71ef9883d955bfcf.tar.gz
ecgen-63427ed3415b25bd29c5e1fe71ef9883d955bfcf.tar.zst
ecgen-63427ed3415b25bd29c5e1fe71ef9883d955bfcf.zip
Add generating of points on non-prime order subgroups of a curve.
- Use --points=nonprime
Diffstat (limited to 'src/exhaustive')
-rw-r--r--src/exhaustive/exhaustive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c
index f2c555b..5c50a71 100644
--- a/src/exhaustive/exhaustive.c
+++ b/src/exhaustive/exhaustive.c
@@ -87,12 +87,16 @@ static void exhaustive_ginit(gen_t *generators, const config_t *cfg) {
case POINTS_PRIME:
generators[OFFSET_POINTS] = &points_gen_prime;
break;
+ case POINTS_NONPRIME:
+ generators[OFFSET_POINTS] = &points_gen_nonprime;
+ break;
case POINTS_ALL:
generators[OFFSET_POINTS] = &points_gen_allgroups;
break;
case POINTS_NONE:
generators[OFFSET_POINTS] = &gen_skip;
break;
+
}
}