aboutsummaryrefslogtreecommitdiff
path: root/src/cli.h
diff options
context:
space:
mode:
authorJ08nY2017-02-07 04:06:09 +0100
committerJ08nY2017-02-07 04:12:04 +0100
commit06d927c9737589ed76b516c54ee74c8e6e44702b (patch)
tree8e7560f66a96e5bf5bb391907c3678f65581631a /src/cli.h
parent96bf13d11b595aabf514c706adcf57aefc660a1f (diff)
downloadecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.tar.gz
ecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.tar.zst
ecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.zip
Moved to a more modular generation process
Curves are now generated in a loop through a func. pointer array, built from cli args. - Allows complex behavior from simple funcs - a func can "rewind" previous generation steps, if it can not succesfuly guarantee that it will generate a curve/param/point with property requested. - e.g. curve_nonzero rewinds [b, a, field] (returns -3) if the curve specified by [field, a, b] has a zero discriminant. This way, [field, a, b] can be generated/produced/input again and a curve might get constructed that will be nonzero.
Diffstat (limited to 'src/cli.h')
-rw-r--r--src/cli.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.h b/src/cli.h
index 0f0c625..5bffb3a 100644
--- a/src/cli.h
+++ b/src/cli.h
@@ -13,7 +13,7 @@ extern char doc[];
extern char args_doc[];
extern struct argp_option options[];
-enum field_e { FIELD_PRIME, FIELD_BINARY } ;
+enum field_e { FIELD_PRIME, FIELD_BINARY };
typedef struct config_t {
enum field_e field;
@@ -21,6 +21,7 @@ typedef struct config_t {
bool prime_field;
bool random;
bool prime;
+ bool invalid;
bool from_seed;
char *seed;
char *datadir;