diff options
| author | J08nY | 2024-11-29 20:26:31 +0100 |
|---|---|---|
| committer | J08nY | 2024-11-29 20:26:31 +0100 |
| commit | b90324e27f8727abd7af7ef0887fc0bb6c23fc1c (patch) | |
| tree | 19e528965507675cd5d1967c0c952c52b2f8900e | |
| parent | 4a867eca9b81a336d952d7db3c7cf7118e71bac3 (diff) | |
| download | ecgen-b90324e27f8727abd7af7ef0887fc0bb6c23fc1c.tar.gz ecgen-b90324e27f8727abd7af7ef0887fc0bb6c23fc1c.tar.zst ecgen-b90324e27f8727abd7af7ef0887fc0bb6c23fc1c.zip | |
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | test/data/prime.in | 1 | ||||
| -rwxr-xr-x | test/ecgen.sh | 2 |
3 files changed, 4 insertions, 0 deletions
@@ -244,6 +244,7 @@ Four different EC curve parameters generation methods are implemented. - Used with the `--anomalous` option. - These curves are **NOT SECURE** and are useful for implementation testing. - [Elliptic curves over F_p suitable for cryptosystems - [Miyaji]](https://dspace.jaist.ac.jp/dspace/bitstream/10119/4464/1/73-61.pdf) + - TODO: Extend with [Generating Anomalous Elliptic Curves - [Leprevost, Monnerat, Varrette, Vaydenay]](https://www.monnerat.info/publications/anomalous.pdf) ### Build diff --git a/test/data/prime.in b/test/data/prime.in new file mode 100644 index 0000000..d364d76 --- /dev/null +++ b/test/data/prime.in @@ -0,0 +1 @@ +7161604836617373209
\ No newline at end of file diff --git a/test/ecgen.sh b/test/ecgen.sh index d430f99..16be274 100755 --- a/test/ecgen.sh +++ b/test/ecgen.sh @@ -116,6 +116,8 @@ function supersingular() { order_m1=$(echo $(canonical_num $order) - 1 | bc) assert "canonical_num $p" $order_m1 + assert_raises "${ecgen} --fp --supersingular --input=data/prime.in 64" + assert_raises "${ecgen} --fp --supersingular -r -u --metadata 20" assert_raises "${ecgen} --fp --supersingular -r --points=random 16" assert_raises "${ecgen} --fp --supersingular -r --points=5random 16" |
