diff options
| -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" |
