aboutsummaryrefslogtreecommitdiff
path: root/src/invalid/invalid.c
Commit message (Collapse)AuthorAgeFilesLines
* Add hex check to cli.J08nY2017-10-191-4/+9
|
* Cleanup the CLI options parsing and enums a bit.J08nY2017-10-191-1/+1
|
* Format and update README.J08nY2017-10-141-7/+7
|
* Make config_t *cfg a global variable.J08nY2017-10-141-34/+33
| | | | | | The config is setup from parsing CLI options and then doesn't change for the whole duration of running ecgen, so it makes sense to make it a global variable.
* Cleanup invalid and exhaustive generation.J08nY2017-10-041-70/+73
|
* Add new/create/free funcs for malloced exhaustive_t.J08nY2017-09-301-16/+23
|
* Implement the curve non-zero discriminant as a check_f.J08nY2017-09-291-8/+15
|
* Rename unroll_t -> unroll_f.J08nY2017-09-291-1/+1
|
* Rename gen_t -> gen_f.J08nY2017-09-291-5/+5
|
* Introduce check_t func.J08nY2017-09-291-19/+25
|
* Use correct allocation functions. Add try_free.J08nY2017-08-301-2/+2
|
* Renamed a bunch of generators.J08nY2017-06-011-2/+2
|
* Move stuff related to generators to src/gen.J08nY2017-05-311-6/+6
|
* Add some more comments and docs, move exhaustive/seed.[ch] into math/J08nY2017-05-291-2/+2
|
* Add GENERATOR and UNROLL macro, use themJ08nY2017-05-231-16/+17
|
* Add debug logging with time, refactor allocationJ08nY2017-05-191-42/+30
|
* Fixed unrolls / unique generator curve generatonJ08nY2017-05-071-3/+12
| | | | | | - 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
* Add output separators, invalid curve generation now outputs valid JSONJ08nY2017-04-261-0/+9
|
* Load modular polynomial db in main threadJ08nY2017-04-181-2/+2
|
* Change multi-threaded SEA back to general algoJ08nY2017-04-181-8/+1
|
* Try to fix multi-threaded SEAJ08nY2017-04-161-1/+9
|
* Change invalid curve generation thread argument passingJ08nY2017-04-161-4/+5
|
* Add unrolls to invalid generation methodJ08nY2017-04-121-9/+10
|
* Added unroll functions, to generalize going back in exhaustive generationJ08nY2017-04-101-4/+6
|
* Fixed exhaustive curve generation for params with no curveJ08nY2017-04-101-0/+2
| | | | | | | - Added some debug prints - Fixed debug macro - Temporarily disabled obj_free in exhaustive_gen until roll_t arrives
* Moved curve output in multi-threaded invalid curve generation to master threadJ08nY2017-04-101-7/+26
| | | | | | - Fixed mutex and cond destroy - Added debug() macro - Renamed debug out stream to verbose
* Added multi-threading support to invalid curve generationJ08nY2017-04-091-37/+106
| | | | | | | | | | | | 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 binary field curve generation, move config into config.hJ08nY2017-04-071-1/+1
|
* Fix ellinit leak, also compile with pari 2.9.2 for ellsea fixJ08nY2017-04-061-0/+1
|
* Fix some leaks, add option to specify PARI stack sizeJ08nY2017-04-051-1/+2
|
* Make some stuff staticJ08nY2017-04-051-4/+4
|
* Add exhaustive_gen_retry, fix infinite loop, add retry limit to exhaustive genJ08nY2017-04-051-1/+2
|
* Fixed inalid curve generation segfaultJ08nY2017-03-091-0/+1
|
* Added requested points type option + count optionJ08nY2017-03-011-2/+2
|
* Added option to request uniquely generated curves.J08nY2017-02-281-1/+5
| | | | -u --unique
* 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
* Added generatorsJ08nY2017-02-191-2/+4
| | | | | | | - 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-18/+85
| | | | | | | | | | | | | | - 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.
* Implemented json output, also output format option (-t/--format)J08nY2017-02-151-2/+2
|
* 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-7/+5
| | | | | | - 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-11/+139
|
* Properly split into submodulesJ08nY2017-02-101-0/+24
|
* Seperated different generation methods into modules.J08nY2017-02-091-0/+5
- Added Koblitz curve generation.