diff options
| author | J08nY | 2017-02-07 04:06:09 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-07 04:12:04 +0100 |
| commit | 06d927c9737589ed76b516c54ee74c8e6e44702b (patch) | |
| tree | 8e7560f66a96e5bf5bb391907c3678f65581631a /src/poly.h | |
| parent | 96bf13d11b595aabf514c706adcf57aefc660a1f (diff) | |
| download | ecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.tar.gz ecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.tar.zst ecgen-06d927c9737589ed76b516c54ee74c8e6e44702b.zip | |
Moved to a more modular generation process
Curves are now generated in a loop through a func. pointer array, built
from cli args.
- Allows complex behavior from simple funcs
- a func can "rewind" previous generation steps, if it can not
succesfuly guarantee that it will generate a curve/param/point with
property requested.
- e.g. curve_nonzero rewinds [b, a, field] (returns -3) if the curve
specified by [field, a, b] has a zero discriminant. This way, [field, a,
b] can be generated/produced/input again and a curve might get
constructed that will be nonzero.
Diffstat (limited to 'src/poly.h')
| -rw-r--r-- | src/poly.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -5,8 +5,8 @@ #ifndef ECGEN_POLY_H #define ECGEN_POLY_H -#include <stdbool.h> #include <pari/pari.h> +#include <stdbool.h> typedef struct polynomial { int m; @@ -15,9 +15,6 @@ typedef struct polynomial { int e3; } polynomial_t; -extern polynomial_t ansi_trinomials[]; -extern polynomial_t ansi_pentanomials[]; - /** * * @param m |
