summaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorJ08nY2017-09-19 12:47:45 +0200
committerJ08nY2017-09-19 12:47:45 +0200
commit3e8c233f7aa720608bf6b82744948eb1709e1d84 (patch)
treeb05187c9dc01caa0fa6e3ec99240ac232aaceffe /src/io
parent3fad579c3cbcbce457f36af6c1ceff37ec04ee54 (diff)
downloadecgen-3e8c233f7aa720608bf6b82744948eb1709e1d84.tar.gz
ecgen-3e8c233f7aa720608bf6b82744948eb1709e1d84.tar.zst
ecgen-3e8c233f7aa720608bf6b82744948eb1709e1d84.zip
Move some files into src/misc.
Diffstat (limited to 'src/io')
-rw-r--r--src/io/cli.c2
-rw-r--r--src/io/config.h67
-rw-r--r--src/io/input.h2
-rw-r--r--src/io/output.h2
4 files changed, 3 insertions, 70 deletions
diff --git a/src/io/cli.c b/src/io/cli.c
index 4c6dae2..4545e7f 100644
--- a/src/io/cli.c
+++ b/src/io/cli.c
@@ -5,7 +5,7 @@
#include "cli.h"
#include <string.h>
#include <unistd.h>
-#include "config.h"
+#include "misc/config.h"
#include "exhaustive/ansi.h"
char cli_doc[] =
diff --git a/src/io/config.h b/src/io/config.h
deleted file mode 100644
index 7b9a9dc..0000000
--- a/src/io/config.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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_NONPRIME,
- 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;
- long koblitz_value;
- bool cofactor;
- long cofactor_bound;
- bool ansi;
- 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
diff --git a/src/io/input.h b/src/io/input.h
index 2759973..eb836e2 100644
--- a/src/io/input.h
+++ b/src/io/input.h
@@ -8,7 +8,7 @@
#ifndef ECGEN_INPUT_H
#define ECGEN_INPUT_H
-#include "gen/types.h"
+#include "misc/types.h"
#include "util/random.h"
/**
diff --git a/src/io/output.h b/src/io/output.h
index 586f4e8..6c241d5 100644
--- a/src/io/output.h
+++ b/src/io/output.h
@@ -10,7 +10,7 @@
#include <pari/pari.h>
#include <stdbool.h>
-#include "gen/types.h"
+#include "misc/types.h"
#ifdef DEBUG