/* * ecgen, tool for generating Elliptic curve domain parameters * Copyright (C) 2017 J08nY */ /** * @file cli.h */ #ifndef ECGEN_CLI_H #define ECGEN_CLI_H #include #include #include extern char doc[]; extern char args_doc[]; extern struct argp_option options[]; enum field_e { FIELD_PRIME, FIELD_BINARY }; enum format_e { FORMAT_JSON, FORMAT_CSV }; typedef struct config_t { enum field_e field; bool binary_field; bool prime_field; long count; bool random; bool prime; bool invalid; bool cm; char *order; bool koblitz; bool from_seed; char *seed; char *datadir; enum format_e format; char *output; char *input; bool append; long verbose; char *debug; long bits; } config_t; error_t parse_opt(int key, char *arg, struct argp_state *state); #endif // ECGEN_CLI_H