Re: Where can I find ECC source code and demo?
- From: "Tom St Denis" <tomstdenis@xxxxxxxxx>
- Date: 17 Jul 2006 08:20:25 -0700
Peter Pearson wrote:
On 17 Jul 2006 01:59:20 -0700, bbqqyb@xxxxxxxxx <bbqqyb@xxxxxxxxx> wrote:
Where can I find ECC source code and demo?
In Python, from
http://webpages.charter.net/curryfans/peter/ellipticcurve.py
http://webpages.charter.net/curryfans/peter/ecdsa.py
and
http://webpages.charter.net/curryfans/peter/numbertheory.py
Thanks to built-in big integers, elliptic curves are pretty simple
in Python. Not counting test code, epplicticcurve.py and ecdsa.py
total about 200 lines.
That's not standard compliant though. EC-DSA specifies an ASN.1
encoding for the r,s parameters. Also your code uses affine points and
a 1-NAF point multiplier.
No guh your code is 200 lines, it's slow and not standard comforming.
My ECC code in LTC is ~2200 lines [including comments], implements fast
[well faster than your code] ECC, is fully documented [one function per
file] and is X9.62/3 standard conforming for GF(p) curves.
I'd recommend people not use your code for basically these reasons
1. Interface is horrible, you should hide the NIST parameters from the
caller. They want ECC-192, not the base point, modulus, order and B
....
2. It's slow. You should use faster more efficient algrorithms
3. It doesn't match what is required from the ANSI standards.
Tom
.
- References:
- Where can I find ECC source code and demo?
- From: bbqqyb
- Re: Where can I find ECC source code and demo?
- From: Peter Pearson
- Where can I find ECC source code and demo?
- Prev by Date: Re: Cipher "arikahs"
- Next by Date: Re: portable countermeasures against AES timing attacks
- Previous by thread: Re: Where can I find ECC source code and demo?
- Next by thread: portable countermeasures against AES timing attacks
- Index(es):
Relevant Pages
|
|