diff options
| author | J08nY | 2017-02-19 18:58:26 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-19 18:58:26 +0100 |
| commit | 888ca8052e0eb3acbe33dbf180e3af27341002eb (patch) | |
| tree | 589be6afcec5d8986462911fdf41608c39eba8e3 /src/math/order.h | |
| parent | c1be6dbea0f6e2b8d9cb8c422bc2e1cfb41524da (diff) | |
| download | ecgen-888ca8052e0eb3acbe33dbf180e3af27341002eb.tar.gz ecgen-888ca8052e0eb3acbe33dbf180e3af27341002eb.tar.zst ecgen-888ca8052e0eb3acbe33dbf180e3af27341002eb.zip | |
Added generators
- Added new type of gen_t, essentially only for generators. Since they
are points with a special property.
- Added order_smallfact generator
- Added generators to csv and json output
Diffstat (limited to 'src/math/order.h')
| -rw-r--r-- | src/math/order.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/math/order.h b/src/math/order.h index a1ed861..4562fab 100644 --- a/src/math/order.h +++ b/src/math/order.h @@ -24,6 +24,16 @@ int order_init(curve_t *curve, config_t *cfg, arg_t *args); /** * GENERATOR(gen_t) + * + * @param curve + * @param cfg + * @param args + * @return + */ +int order_smallfact(curve_t *curve, config_t *cfg, arg_t *args); + +/** + * GENERATOR(gen_t) * Calculates the curve order, always using the SEA algorithm, * gives up early in case the order is divisible by "something". * Succeeds if the curve has a prime order. |
