blob: 5186c672539d5b288e58e2312b1baba9e51dd8e0 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* ecgen, tool for generating Elliptic curve domain parameters
* Copyright (C) 2017 J08nY
*/
/**
* @file config.h
*/
#ifndef ECGEN_CONFIG_H
#define ECGEN_CONFIG_H
#include <stdbool.h>
#include <stddef.h>
enum field_e { FIELD_PRIME, FIELD_BINARY };
enum format_e { FORMAT_JSON, FORMAT_CSV };
enum points_e { POINTS_PRIME, POINTS_RANDOM, POINTS_ALL, POINTS_NONE };
struct points_s {
enum points_e type;
size_t amount;
};
typedef struct {
enum field_e field;
bool binary_field;
bool prime_field;
long count;
bool random;
bool prime;
bool invalid;
bool cm;
char *order;
bool anomalous;
bool koblitz;
bool cofactor;
long cofactor_bound;
bool from_seed;
char *seed;
bool unique;
struct points_s points;
char *datadir;
unsigned long memory;
unsigned long threads;
unsigned long thread_memory;
enum format_e format;
char *output;
char *input;
bool append;
long verbose;
char *verbose_log;
unsigned long bits;
unsigned long hex_digits;
} config_t;
#endif // ECGEN_CONFIG_H
|