blob: 0826419bbd8050a33e81d9d5c0b3e0929234ac84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* 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[];
enum field_e { FIELD_PRIME, FIELD_BINARY };
typedef struct config_t {
enum field_e field;
bool binary_field;
bool prime_field;
bool random;
bool prime;
bool invalid;
bool cm;
char *order;
bool koblitz;
bool from_seed;
char *seed;
char *datadir;
char *output;
char *input;
bool append;
long bits;
} config_t;
error_t parse_opt(int key, char *arg, struct argp_state *state);
#endif // ECGEN_CLI_H
|