aboutsummaryrefslogtreecommitdiff
path: root/src/math/order.h
diff options
context:
space:
mode:
authorJ08nY2017-04-09 18:19:25 +0200
committerJ08nY2017-04-09 18:19:25 +0200
commit1834586a6850f3c93107271a0351accde78981fd (patch)
tree30a7b83ef6e289dda3beede9d5d5a8a3aac197c2 /src/math/order.h
parent2c9a14b7323749af884279a564dabd710e089dcc (diff)
downloadecgen-1834586a6850f3c93107271a0351accde78981fd.tar.gz
ecgen-1834586a6850f3c93107271a0351accde78981fd.tar.zst
ecgen-1834586a6850f3c93107271a0351accde78981fd.zip
Added multi-threading support to invalid curve generation
Invalid curve generation now supports multi-threading via pthreads, use the --threads= option. - Changed some function params to const, where possible. - Added *_new_copy, *_clone and *_new_clone functions to curve_t*, point_t* and point_t** - Made cfg->bits unsigned long - Made order_any gcopy the generated order(as it can be a clone and screw up stuff later)
Diffstat (limited to 'src/math/order.h')
-rw-r--r--src/math/order.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/order.h b/src/math/order.h
index 14adc79..b883fe6 100644
--- a/src/math/order.h
+++ b/src/math/order.h
@@ -20,7 +20,7 @@
* @param args
* @return state diff
*/
-int order_any(curve_t *curve, config_t *cfg, arg_t *args);
+int order_any(curve_t *curve, const config_t *cfg, arg_t *args);
/**
* GENERATOR(gen_t)
@@ -30,7 +30,7 @@ int order_any(curve_t *curve, config_t *cfg, arg_t *args);
* @param args
* @return
*/
-int order_smallfact(curve_t *curve, config_t *cfg, arg_t *args);
+int order_smallfact(curve_t *curve, const config_t *cfg, arg_t *args);
/**
* GENERATOR(gen_t)
@@ -43,6 +43,6 @@ int order_smallfact(curve_t *curve, config_t *cfg, arg_t *args);
* @param args
* @return state diff
*/
-int order_prime(curve_t *curve, config_t *cfg, arg_t *args);
+int order_prime(curve_t *curve, const config_t *cfg, arg_t *args);
#endif // ECGEN_ORDER_H