aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-04-08 20:30:45 +0200
committerJ08nY2017-04-08 20:30:45 +0200
commit95232a66de8f62098cb230e924b27049c89a9c4a (patch)
treeab5add2c73b3f70e6c05ad540fd8515a99eb43d8
parent59f073938cbb75aaeb62062580172464fa274cac (diff)
downloadecgen-95232a66de8f62098cb230e924b27049c89a9c4a.tar.gz
ecgen-95232a66de8f62098cb230e924b27049c89a9c4a.tar.zst
ecgen-95232a66de8f62098cb230e924b27049c89a9c4a.zip
-rw-r--r--.travis.yml2
-rw-r--r--README.md45
2 files changed, 24 insertions, 23 deletions
diff --git a/.travis.yml b/.travis.yml
index e388df3..d2d7010 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,7 @@ before_install:
- sudo dpkg --force-all -i libpari-gmp-tls5_2.9.1-1_amd64.deb libpari-dev_2.9.1-1_amd64.deb
script:
- - make
+ - make -j2
deploy:
provider: releases
diff --git a/README.md b/README.md
index c2122c8..a411f86 100644
--- a/README.md
+++ b/README.md
@@ -8,34 +8,35 @@ Tool for generating Elliptic curve domain parameters.
#### Field specification
- - `--f2m` Binary field.
- - `--fp` Prime field.
+ - `--f2m` Binary field.
+ - `--fp` Prime field.
#### Generation options
- - `-c`, `--count=COUNT` Generate multiple curves.
- - `-i`, `--invalid` Generate a set of invalid curves, for a given curve (using Invalid curve algorithm).
- - `-k`, `--cofactor=BOUND` Generate a curve with cofactor up to `BOUND`
- - `-K`, `--koblitz` Generate a Koblitz curve (a = 0).
- - `-n`, `--order=ORDER` Generate a curve with given `ORDER` (using Complex Multiplication).
- - `-p`, `--prime` Generate a curve with prime order.
- - `--points=TYPE` Generate points of given `TYPE` (random/prime/none).
- -`r`, `--random` Generate a random curve (using Random approach).
- -`s`, `--seed[=SEED]` Generate a curve from `SEED` (ANSI X9.62 verifiable procedure).
- -`u`, `--unique` Generate a curve with only one generator.
+ - `-c`, `--count=COUNT` Generate multiple curves.
+ - `-i`, `--invalid` Generate a set of invalid curves, for a given curve (using Invalid curve algorithm).
+ - `-k`, `--cofactor=BOUND` Generate a curve with cofactor up to `BOUND`
+ - `-K`, `--koblitz` Generate a Koblitz curve (a = 0).
+ - `-n`, `--order=ORDER` Generate a curve with given `ORDER` (using Complex Multiplication).
+ - `-p`, `--prime` Generate a curve with prime order.
+ - `--points=TYPE` Generate points of given `TYPE` (random/prime/none).
+ - `r`, `--random` Generate a random curve (using Random approach).
+ - `s`, `--seed[=SEED]` Generate a curve from `SEED` (ANSI X9.62 verifiable procedure).
+ - `u`, `--unique` Generate a curve with only one generator.
#### IO options
- - `-a`, `--append` Append to output file (don't overwrite).
- - `-f`, `--input=FILE` Input from `FILE`.
- - `-o`, `--output=FILE` Output into `FILE`. Overwrites any existing file!
- - `-t`, `--format=FORMAT` Format to output in. One of [csv,json], default is json.
- - `-v`, `--verbose[=FILE]` Verbose logging (to stdout or `FILE`).
+ - `-a`, `--append` Append to output file (don't overwrite).
+ - `-f`, `--input=FILE` Input from `FILE`.
+ - `-o`, `--output=FILE` Output into `FILE`. Overwrites any existing file!
+ - `-t`, `--format=FORMAT` Format to output in. One of [csv,json], default is json.
+ - `-v`, `--verbose[=FILE]` Verbose logging (to stdout or `FILE`).
#### Other
- - `-d`, `--data-dir=DIR` Set PARI/GP data directory (containing seadata package).
- - `-m`, `--memory=SIZE` Use PARI stack of `SIZE` (can have suffix k/m/g).
+ - `-d`, `--data-dir=DIR` Set PARI/GP data directory (containing seadata package).
+ - `-m`, `--memory=SIZE` Use PARI stack of `SIZE` (can have suffix k/m/g).
+ - `--threads=NUM` Use `NUM` threads.
#### Examples
@@ -98,9 +99,9 @@ Three different EC curve parameters generation methods are implemented.
- using ANSI X9.62 verifiably random method(from seed), until a curve with requested properties appears.
- given input
- Can generate curves repeatedly until one satisfies requested properties:
- - `-p/--prime` generates curves until a prime order curve is found.
- - `-k/--koblitz` generates a curve with fixed *A = 0* parameter.
- - `-u/--unique` generates a uniquely generated curve (with one generator/cyclic group).
+ - `-p / --prime` generates curves until a prime order curve is found.
+ - `-K / --koblitz` generates a curve with fixed *A = 0* parameter.
+ - `-u / --unique` generates a uniquely generated curve (with one generator/cyclic group).
##### Invalid curve generation