diff options
| author | J08nY | 2017-02-16 21:31:50 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-16 21:31:50 +0100 |
| commit | 7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2 (patch) | |
| tree | b0f2d97310b9d0a3e4ba2e0a1cfbcf31d608383e /src/math/field.h | |
| parent | 5d9d12811441930169b0517318dcf21c51b72e2d (diff) | |
| download | ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.tar.gz ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.tar.zst ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.zip | |
Optimized invalid curve generation, added optional args to gen_t
- 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.
Diffstat (limited to 'src/math/field.h')
| -rw-r--r-- | src/math/field.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math/field.h b/src/math/field.h index 13cb283..2d6d92a 100644 --- a/src/math/field.h +++ b/src/math/field.h @@ -18,10 +18,10 @@ * * @param curve * @param config - * @param ... unused + * @param args unused * @return state diff */ -int field_random(curve_t *curve, config_t *config, ...); +int field_random(curve_t *curve, config_t *config, arg_t *args); /** * GENERATOR(gen_t) @@ -31,10 +31,10 @@ int field_random(curve_t *curve, config_t *config, ...); * * @param curve * @param config - * @param ... unused + * @param args unused * @return state diff */ -int field_input(curve_t *curve, config_t *config, ...); +int field_input(curve_t *curve, config_t *config, arg_t *args); /** * Extract a field representation from a field. |
