On 05/21/2011 01:04 PM, Niels Möller wrote:
I'm working towards adding ECDH and ECDSA support to gnutls.
I don't have time at the moment to read the code. Could you summarize which curves/algorithms/specifications you're implementing?
For gnutls I care only about the SECG curves (SECP224R1, SECP256R1, SECP384R1, SECP521R1) and with those I have tested the ECDH support. The code was fixed for the curves y^2=x^3-3x+b. I tried to make it apply to generic y^2=x^3+ax+b, but I haven't test that functionality (nor plan to) because all of the above curves are of the a=-3 format.
libtomcrypt's code style is similar to nettle's thus the changes required to port this to nettle would not be much, but always depends on what you want to include there.
- Port libgrypt's LGPL:ed serpent implementation to nettle. * Overall
license change to LGPL. Still not decided if it should be LGPLv2+, LGPLv3+, or dual license GPLv2+ and LGPLv3+ (in this notation, "+" means "or any later version, of the user's choice").
May I suggest an intermediate release with GCM under LGPLv2+? That would ensure that current applications using gnutls can use that code.
regards, Nikos