diff options
| author | J08nY | 2017-11-08 17:55:48 +0100 |
|---|---|---|
| committer | J08nY | 2017-11-08 17:55:48 +0100 |
| commit | cfec33981db5a6f80e51c064bc142623ce13399f (patch) | |
| tree | 657e1e6909513414c41014f12d9d553e06546566 /src/exhaustive | |
| parent | e8538079cda22ac69f80d2ca7e3c97929006136f (diff) | |
| download | ecgen-cfec33981db5a6f80e51c064bc142623ce13399f.tar.gz ecgen-cfec33981db5a6f80e51c064bc142623ce13399f.tar.zst ecgen-cfec33981db5a6f80e51c064bc142623ce13399f.zip | |
Diffstat (limited to 'src/exhaustive')
| -rw-r--r-- | src/exhaustive/brainpool.c | 16 | ||||
| -rw-r--r-- | src/exhaustive/brainpool.h | 2 | ||||
| -rw-r--r-- | src/exhaustive/exhaustive.c | 15 |
3 files changed, 13 insertions, 20 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) { |
