From 3e4c87f12d13cd0a2d139cf8a149874634972afa Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 30 Jun 2018 16:21:12 +0200 Subject: Implement computation of curve metadata(j-invariant, disc, frobenius, cm disc). --- src/exhaustive/exhaustive.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/exhaustive') diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c index 28d464a..15b299a 100644 --- a/src/exhaustive/exhaustive.c +++ b/src/exhaustive/exhaustive.c @@ -15,6 +15,7 @@ #include "gen/hex.h" #include "gen/order.h" #include "gen/point.h" +#include "gen/metadata.h" #include "gen/seed.h" #include "io/output.h" #include "misc/config.h" @@ -182,6 +183,12 @@ static void exhaustive_ginit(gen_f *generators) { generators[OFFSET_CURVE] = &curve_gen_any; } + if (cfg->metadata) { + generators[OFFSET_METADATA] = &metadata_gen; + } else { + generators[OFFSET_METADATA] = &gen_skip; + } + switch (cfg->points.type) { case POINTS_RANDOM: if (cfg->points.amount) { -- cgit v1.2.3-70-g09d2