diff options
| author | J08nY | 2017-02-05 03:59:52 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-05 03:59:52 +0100 |
| commit | 763fc80153c5e9287f1b0f0609b11fb4f50c90ab (patch) | |
| tree | 5cd6e7acc4512cca65bcc16a74f3b63879b2d3bc /src/cli.h | |
| parent | 3d9bf583ccc5eea61c5f78f52d1e2073daee924c (diff) | |
| download | ecgen-0.2.0.tar.gz ecgen-0.2.0.tar.zst ecgen-0.2.0.zip | |
Diffstat (limited to 'src/cli.h')
| -rw-r--r-- | src/cli.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/cli.h b/src/cli.h new file mode 100644 index 0000000..e9b832b --- /dev/null +++ b/src/cli.h @@ -0,0 +1,36 @@ +/* + * ecgen, tool for generating Elliptic curve domain parameters + * Copyright (C) 2017 J08nY + */ +#ifndef ECGEN_CLI_H +#define ECGEN_CLI_H + +#include <argp.h> +#include <stdbool.h> +#include <stdlib.h> + +extern char doc[]; +extern char args_doc[]; +extern struct argp_option options[]; + +typedef enum { + FIELD_PRIME, + FIELD_BINARY +} field_t; + +struct arguments { + field_t field; + bool binary_field; + bool prime_field; + bool random; + bool prime; + char *datadir; + char *output; + char *input; + bool append; + long bits; +}; + +error_t parse_opt(int key, char *arg, struct argp_state *state); + +#endif // ECGEN_CLI_H |
