diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/exhaustive/brainpool.c | 16 | ||||
| -rw-r--r-- | src/exhaustive/brainpool.h | 2 | ||||
| -rw-r--r-- | src/exhaustive/exhaustive.c | 15 | ||||
| -rw-r--r-- | src/gen/seed.c | 2 |
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" |
