math/: Support EC2OSP and OS2ECP operations, with point compression.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 27 Feb 2015 21:18:15 +0000 (21:18 +0000)
commit6775a491555123da607656e31e0bcdfd70099aa0
treefed410a02fe5ee5f7548ca2f130a16a404676432
parentfac18421f5b3c215e04a32240e04ac6235d17a0f
math/: Support EC2OSP and OS2ECP operations, with point compression.

We handle both LSB and (IEEE 1363) SORT compression, and hybrid forms.
The `ec_fromraw' function now accepts compressed forms, but (for
compatibility's sake) `ec_toraw' doesn't generate them.  Lots of tests
included.
math/ec-bin.c
math/ec-prime.c
math/ec-raw.c
math/ec-raw.h
math/ec-test.c
math/ec.h
math/t/ec
utils/.gitignore [new file with mode: 0644]
utils/ec-compr-test.sage [new file with mode: 0644]