blob: e9b832b30209d01d21c7ee0e89a34614a3b8dfa4 (
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
|
/*
* 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
|