diff options
| author | J08nY | 2024-12-01 20:03:57 +0100 |
|---|---|---|
| committer | J08nY | 2024-12-01 20:03:57 +0100 |
| commit | 0e9aa69f03a2c6519c8eaeab571b5155d80b05c0 (patch) | |
| tree | 67e79e399279ff23a5d0312e9de976564b81ff0f /src/io/cli.c | |
| parent | 23c460dff96f57a4fa480ab6426700b0be384f12 (diff) | |
| download | ecgen-0e9aa69f03a2c6519c8eaeab571b5155d80b05c0.tar.gz ecgen-0e9aa69f03a2c6519c8eaeab571b5155d80b05c0.tar.zst ecgen-0e9aa69f03a2c6519c8eaeab571b5155d80b05c0.zip | |
Diffstat (limited to 'src/io/cli.c')
| -rw-r--r-- | src/io/cli.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index 0da0770..d98a0c0 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -63,7 +63,7 @@ struct argp_option cli_options[] = { {"nums", OPT_NUMS, 0, 0, "Generate a curve using the NUMS procedure.", 2}, {"invalid", OPT_INVALID, "RANGE", OPTION_ARG_OPTIONAL, "Generate a set of invalid curves, for a given curve (using Invalid curve algorithm).", 2}, {"twist", OPT_TWIST, 0, 0, "Generate a twist of a given curve.", 2}, - {"family", OPT_FAMILY, "NAME", 0, "Generate a curve from a curve family (e.g. BN, BLS12, BLS24, KSS)."}, + {"family", OPT_FAMILY, "NAME", 0, "Generate a curve from a curve family (e.g. BN, BLS12, BLS24, KSS16, KSS18, KSS36, KSS40).", 2}, {0, 0, 0, 0, "Generation options:", 3}, {"random", OPT_RANDOM, "WHAT", OPTION_ARG_OPTIONAL, "Generate a random curve (using Random approach). " @@ -294,16 +294,12 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { } else if (strcasecmp(arg, "BLS24") == 0) { cfg->family = FAMILY_BLS24; } else if (strcasecmp(arg, "KSS16") == 0) { - argp_failure(state, 1, 0, "Family not yet supported."); cfg->family = FAMILY_KSS16; } else if (strcasecmp(arg, "KSS18") == 0) { - argp_failure(state, 1, 0, "Family not yet supported."); cfg->family = FAMILY_KSS18; } else if (strcasecmp(arg, "KSS36") == 0) { - argp_failure(state, 1, 0, "Family not yet supported."); cfg->family = FAMILY_KSS36; } else if (strcasecmp(arg, "KSS40") == 0) { - argp_failure(state, 1, 0, "Family not yet supported."); cfg->family = FAMILY_KSS40; } else { argp_failure(state, 1, 0, "Unknown curve family = %s", arg); |
