aboutsummaryrefslogtreecommitdiff
path: root/src/math/curve.c
Commit message (Collapse)AuthorAgeFilesLines
* Move stuff related to generators to src/gen.J08nY2017-05-311-162/+0
|
* Add some more comments and docs, move exhaustive/seed.[ch] into math/J08nY2017-05-291-1/+1
|
* Add GENERATOR and UNROLL macro, use themJ08nY2017-05-231-13/+12
|
* Add debug logging with time, refactor allocationJ08nY2017-05-191-9/+2
|
* Fixed unrolls / unique generator curve generatonJ08nY2017-05-071-2/+2
| | | | | | - Also added some tests to catch some regressions like this early - Fixed double free in gens, also some funky stuff with gunclone and obj_free in curve_free
* Pad output hex to field size (both json and csv)J08nY2017-05-021-35/+0
|
* Add some docs, move them to /docs, clean-up includesJ08nY2017-04-271-1/+0
|
* Fix unnecessary indirection in curve_paramsJ08nY2017-04-111-10/+4
|
* Added unroll functions, to generalize going back in exhaustive generationJ08nY2017-04-101-1/+10
|
* Fixed exhaustive curve generation for params with no curveJ08nY2017-04-101-3/+12
| | | | | | | - Added some debug prints - Fixed debug macro - Temporarily disabled obj_free in exhaustive_gen until roll_t arrives
* Added multi-threading support to invalid curve generationJ08nY2017-04-091-12/+56
| | | | | | | | | | | | 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)
* fix bad object free(after stack rewind)J08nY2017-04-071-5/+0
|
* Fix curve generation over binary fields, cleanup CMakelistsJ08nY2017-04-061-2/+3
|
* Fix ellinit leak, also compile with pari 2.9.2 for ellsea fixJ08nY2017-04-061-0/+8
|
* Fix some leaks, add option to specify PARI stack sizeJ08nY2017-04-051-0/+1
|
* Make some stuff staticJ08nY2017-04-051-2/+2
|
* Fix curve_copy, generators were not copiedJ08nY2017-04-051-0/+6
|
* Rename and reformatJ08nY2017-03-091-8/+8
|
* Added irreducibility check, equation_quit, gens_oneJ08nY2017-02-281-3/+3
| | | | | | | - irreducibility check in field_input for f2m - equation_quit frees stuff possibly allocated by a_once and b_once - gens_one requests the curve to have only one generator - renamed some base generators to _any from _init, as they dont really init anythong, just do no checks
* ecgen v0.3: some cleanup and version bumpJ08nY2017-02-191-10/+16
|
* Added generatorsJ08nY2017-02-191-15/+30
| | | | | | | - 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
* Optimized invalid curve generation, added optional args to gen_tJ08nY2017-02-161-16/+11
| | | | | | | | | | | | | | - Optimized invalid curve generation - Invalid curve generation for secp256r1 now takes around 90minutes instead of 5hours as before - Optimized prime point generation(if only some small prime order points are needed -> points_primet) - Added a_once and b_once that prompt for parameter input and then set the input parameter repeatedly - Added optional args to gen_t functions - Integer input now ignores whitespace and doesnt errorneously prompt stdout when reading from file - Specified C standard(C11) + feature macros in code.
* Add some TODOs, fix buildJ08nY2017-02-151-2/+8
|
* Fixed invalid curve generation and prime order point generationJ08nY2017-02-141-0/+1
| | | | | - Wrong point order was saved (point.c:105) - Curve was not copied correctly (curve.c:32)
* Added point generation:J08nY2017-02-141-2/+31
| | | | | | - Prime order points for all prime divisors of curve order (all prime subgroups) - Random points - Minimal set of generators of the whole group (one or two points)
* Implemented invalid curve generationJ08nY2017-02-141-1/+1
|
* Properly split into submodulesJ08nY2017-02-101-18/+1
|
* Seperated different generation methods into modules.J08nY2017-02-091-0/+104
- Added Koblitz curve generation.