diff options
| author | J08nY | 2017-03-09 13:18:15 +0100 |
|---|---|---|
| committer | J08nY | 2017-03-09 13:18:15 +0100 |
| commit | 8c65683537ea57a435a2f987f540bcc2ec5db678 (patch) | |
| tree | 18d6e8893c885d98392d9a4cc9a9d98e67003f18 /src/math/curve.c | |
| parent | 7eff89c0095da4246a7b9c5a6654dc0d7692325e (diff) | |
| download | ecgen-8c65683537ea57a435a2f987f540bcc2ec5db678.tar.gz ecgen-8c65683537ea57a435a2f987f540bcc2ec5db678.tar.zst ecgen-8c65683537ea57a435a2f987f540bcc2ec5db678.zip | |
Diffstat (limited to 'src/math/curve.c')
| -rw-r--r-- | src/math/curve.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/math/curve.c b/src/math/curve.c index 284cd39..5b609fa 100644 --- a/src/math/curve.c +++ b/src/math/curve.c @@ -41,7 +41,7 @@ void curve_free(curve_t **curve) { } } -int curve_any(curve_t *curve, config_t *config, arg_t *args) { +int curve_any(curve_t *curve, config_t *cfg, arg_t *args) { pari_sp ltop = avma; GEN v = gen_0; switch (typ(curve->field)) { @@ -64,9 +64,9 @@ int curve_any(curve_t *curve, config_t *config, arg_t *args) { return 1; } -int curve_nonzero(curve_t *curve, config_t *config, arg_t *args) { +int curve_nonzero(curve_t *curve, config_t *cfg, arg_t *args) { pari_sp ltop = avma; - curve_any(curve, config, args); + curve_any(curve, cfg, args); if (gequal0(ell_get_disc(curve->curve))) { avma = ltop; return -3; @@ -75,22 +75,22 @@ int curve_nonzero(curve_t *curve, config_t *config, arg_t *args) { } } -int curve_seed_fp(curve_t *curve, config_t *config, arg_t *args) { +int curve_seed_fp(curve_t *curve, config_t *cfg, arg_t *args) { // TODO implement return INT_MIN; } -int curve_seed_f2m(curve_t *curve, config_t *config, arg_t *args) { +int curve_seed_f2m(curve_t *curve, config_t *cfg, arg_t *args) { // TODO implement return INT_MIN; } -int curve_seed(curve_t *curve, config_t *config, arg_t *args) { +int curve_seed(curve_t *curve, config_t *cfg, arg_t *args) { switch (typ(curve->field)) { case t_INT: - return curve_seed_fp(curve, config, args); + return curve_seed_fp(curve, cfg, args); case t_FFELT: - return curve_seed_f2m(curve, config, args); + return curve_seed_f2m(curve, cfg, args); default: pari_err_TYPE("curve_seed", curve->field); return INT_MIN; /* NOT REACHABLE */ |
