diff options
| author | J08nY | 2017-09-29 17:48:58 +0200 |
|---|---|---|
| committer | J08nY | 2017-09-29 17:48:58 +0200 |
| commit | 49bd1736641a101dde23f2bbe994159ed33ef347 (patch) | |
| tree | 0c2b9ea76272807c69e8e07c7d3249ab88509e9b /src/io | |
| parent | 63aa880e19b49ab83132b0032ddd9e1f43029e50 (diff) | |
| download | ecgen-49bd1736641a101dde23f2bbe994159ed33ef347.tar.gz ecgen-49bd1736641a101dde23f2bbe994159ed33ef347.tar.zst ecgen-49bd1736641a101dde23f2bbe994159ed33ef347.zip | |
Introduce check_t func.
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/cli.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index 838c9bf..77f279f 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -234,7 +234,8 @@ 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->seed_algo || cfg->cofactor)) { + if (cfg->invalid && + (cfg->prime || cfg->seed_algo || cfg->cofactor)) { // not seed, not prime argp_failure(state, 1, 0, "Invalid curve generation can not generate curves " @@ -249,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->seed_algo || cfg->cm || - cfg->invalid || cfg->koblitz)) { + (cfg->binary_field || cfg->cofactor || cfg->seed_algo || + cfg->cm || cfg->invalid || cfg->koblitz)) { argp_failure( state, 1, 0, "Anomalous curve generation can not generate " |
