aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-11-08 17:55:48 +0100
committerJ08nY2017-11-08 17:55:48 +0100
commitcfec33981db5a6f80e51c064bc142623ce13399f (patch)
tree657e1e6909513414c41014f12d9d553e06546566
parente8538079cda22ac69f80d2ca7e3c97929006136f (diff)
downloadecgen-cfec33981db5a6f80e51c064bc142623ce13399f.tar.gz
ecgen-cfec33981db5a6f80e51c064bc142623ce13399f.tar.zst
ecgen-cfec33981db5a6f80e51c064bc142623ce13399f.zip
-rw-r--r--src/exhaustive/brainpool.c16
-rw-r--r--src/exhaustive/brainpool.h2
-rw-r--r--src/exhaustive/exhaustive.c15
-rw-r--r--src/gen/seed.c2
4 files changed, 14 insertions, 21 deletions
diff --git a/src/exhaustive/brainpool.c b/src/exhaustive/brainpool.c
index bf7bcda..f8ddb8e 100644
--- a/src/exhaustive/brainpool.c
+++ b/src/exhaustive/brainpool.c
@@ -5,18 +5,10 @@
#include "brainpool.h"
-GENERATOR(brainpool_gen_seed_random) {
- return INT_MIN;
-}
+GENERATOR(brainpool_gen_seed_random) { return INT_MIN; }
-GENERATOR(brainpool_gen_seed_argument) {
- return INT_MIN;
-}
+GENERATOR(brainpool_gen_seed_argument) { return INT_MIN; }
-GENERATOR(brainpool_gen_seed_input) {
- return INT_MIN;
-}
+GENERATOR(brainpool_gen_seed_input) { return INT_MIN; }
-GENERATOR(brainpool_gen_equation) {
- return INT_MIN;
-} \ No newline at end of file
+GENERATOR(brainpool_gen_equation) { return INT_MIN; } \ No newline at end of file
diff --git a/src/exhaustive/brainpool.h b/src/exhaustive/brainpool.h
index ff52ff7..cf212b1 100644
--- a/src/exhaustive/brainpool.h
+++ b/src/exhaustive/brainpool.h
@@ -16,4 +16,4 @@ GENERATOR(brainpool_gen_seed_input);
GENERATOR(brainpool_gen_equation);
-#endif //ECGEN_BRAINPOOL_H
+#endif // ECGEN_BRAINPOOL_H
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c
index f1b6b8b..78c952e 100644
--- a/src/exhaustive/exhaustive.c
+++ b/src/exhaustive/exhaustive.c
@@ -5,8 +5,8 @@
#include "exhaustive.h"
#include "anomalous.h"
#include "ansi.h"
-#include "check.h"
#include "brainpool.h"
+#include "check.h"
#include "gen/curve.h"
#include "gen/equation.h"
#include "gen/field.h"
@@ -53,8 +53,7 @@ static void exhaustive_ginit(gen_f *generators) {
}
generators[OFFSET_A] = &gen_skip;
generators[OFFSET_B] = &ansi_gen_equation;
- }
- break;
+ } break;
case SEED_BRAINPOOL: {
if (cfg->seed) {
generators[OFFSET_SEED] = &brainpool_gen_seed_argument;
@@ -67,11 +66,13 @@ static void exhaustive_ginit(gen_f *generators) {
}
generators[OFFSET_A] = &gen_skip;
generators[OFFSET_B] = &brainpool_gen_equation;
- }
+ } break;
+ case SEED_BRAINPOOL_RFC:
+ break;
+ case SEED_FIPS:
+ break;
+ default:
break;
- case SEED_BRAINPOOL_RFC:break;
- case SEED_FIPS:break;
- default:break;
}
if (cfg->prime) {
diff --git a/src/gen/seed.c b/src/gen/seed.c
index 3b0d0b2..f349982 100644
--- a/src/gen/seed.c
+++ b/src/gen/seed.c
@@ -3,8 +3,8 @@
* Copyright (C) 2017 J08nY
*/
-#include <misc/types.h>
#include "seed.h"
+#include <misc/types.h>
#include "util/bits.h"
#include "util/memory.h"