Re: Where can I find ECC source code and demo?




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

.



Relevant Pages

  • Re: Where can I find ECC source code and demo?
    ... In Python, from ... elliptic curves are pretty simple ... No guh your code is 200 lines, it's slow and not standard comforming. ...
    (sci.crypt)
  • Re: Why C Is Not My Favourite Programming Language
    ... And the number of modules in Python 2.4's Global Module Index is 362. ... The PDP architecture ideals ... fflushcan't be used to flush the contents of standard ... But it's not foolish that in ksh if you refer to an array name ...
    (comp.lang.c)
  • Re: Alignement
    ... would really promote using such a tech-style named word to a standard. ... Python has ... there is NumPy. ... the useful sense) hostnetwork word set in Forth. ...
    (comp.lang.forth)
  • Re: Python component model
    ... those who maintain the Python language and standard modules themselves? ... Someone aiming towards a standard to /replace/ everyone else's? ... the 3rd party developer must adapt their components to each ... re-usable components at a base level in any environment. ...
    (comp.lang.python)
  • Re: Python component model
    ... The Python web programming standardisation wars are over, ... stagnant, because I don't see any winners. ... The thing is that people want a coherent message about Python and Web ... the standard library looks pretty incoherent itself these days. ...
    (comp.lang.python)