diff options
| author | J08nY | 2017-09-19 13:17:22 +0200 |
|---|---|---|
| committer | J08nY | 2017-09-19 13:17:22 +0200 |
| commit | bbcff0f1875f3ac1db7964b228db34350fb84833 (patch) | |
| tree | 49787fc74c5c2460a2b0711b46595c7b4afb11d8 /src/io/cli.c | |
| parent | 2bacc9d1dee4ec1003635edae93b1a03dbb2a12d (diff) | |
| download | ecgen-bbcff0f1875f3ac1db7964b228db34350fb84833.tar.gz ecgen-bbcff0f1875f3ac1db7964b228db34350fb84833.tar.zst ecgen-bbcff0f1875f3ac1db7964b228db34350fb84833.zip | |
Diffstat (limited to 'src/io/cli.c')
| -rw-r--r-- | src/io/cli.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index 4545e7f..ce9d3d9 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -5,8 +5,8 @@ #include "cli.h" #include <string.h> #include <unistd.h> -#include "misc/config.h" #include "exhaustive/ansi.h" +#include "misc/config.h" char cli_doc[] = "ecgen, tool for generating Elliptic curve domain parameters.\v(C) 2017 " @@ -235,8 +235,7 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { "--f2m (but not both)."); } // Invalid is not prime or seed by definition. - if (cfg->invalid && - (cfg->prime || cfg->ansi || cfg->cofactor)) { + if (cfg->invalid && (cfg->prime || cfg->ansi || cfg->cofactor)) { // not seed, not prime argp_failure(state, 1, 0, "Invalid curve generation can not generate curves " @@ -251,8 +250,8 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { "prime."); } if (cfg->anomalous && - (cfg->binary_field || cfg->cofactor || cfg->ansi || - cfg->cm || cfg->invalid || cfg->koblitz)) { + (cfg->binary_field || cfg->cofactor || cfg->ansi || cfg->cm || + cfg->invalid || cfg->koblitz)) { argp_failure( state, 1, 0, "Anomalous curve generation can not generate " |
