kokke / tiny-ECDH-c

Small portable Elliptic-Curve Diffie-Hellman in C
The Unlicense
250 stars 64 forks source link

Supporting Curve BrainpoolP256r1 #23

Open codyax1 opened 3 years ago

codyax1 commented 3 years ago

Do you intend to support curve BrainpoolP256r1 with Generic Mapping (GM) (uncompressed point, Ephermeral Keys) ??

kokke commented 3 years ago

Hi @pateldeep73241 - the super-short answer is "no", the longer is "not for now".

By a quick glance, I don't think the BrainPool curves are using a "compatible" set of mathematics. In the sense that it would take some rewriting and extra code to support it. You may be better off for now with a reference implementation anyway.

I have not spent much time on this - if you have comments or wish to help prove me otherwise, I am very open to PR's :+1:

Thanks for asking :)