diff options
| author | J08nY | 2018-04-09 20:48:04 +0200 |
|---|---|---|
| committer | J08nY | 2018-04-09 20:48:04 +0200 |
| commit | 376ff06154b6364c5983a3f67244c8f2d822a282 (patch) | |
| tree | 2d06864c731abeefe1bc0e8a2d5d0f68b232be92 /src/io/cli.c | |
| parent | 4662f2e2977e400925b3816d32782d88ccb39504 (diff) | |
| download | ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.gz ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.zst ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.zip | |
Diffstat (limited to 'src/io/cli.c')
| -rw-r--r-- | src/io/cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index bc5764f..37c1a8e 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -149,6 +149,10 @@ static void cli_end(struct argp_state *state) { argp_failure(state, 1, 0, "Brainpool algorithm only creates prime field curves."); } + if (cfg->method == METHOD_CM && cfg->field == FIELD_BINARY) { + argp_failure(state, 1, 0, + "Complex multiplication only creates prime field curves."); + } // default values if (!cfg->count) { cfg->count = 1; |
