libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.57k stars 461 forks source link

Is there any plan to support FFDHE (RFC7919)? #639

Closed xiangfeima closed 10 months ago

xiangfeima commented 10 months ago

Current libtomcrypt supports Diffie-Hellman key exchange (RFC7296/RFC3526), is there any plan to support FFDHE (RFC7919)?

sjaeckel commented 10 months ago

FMU the only difference from our implementation to FFDHE are the pre-defined groups. The algorithm is still the same.

There exists dh_set_pg_dhparam() which allows you to set the group manually. A quick search on the internet returned pre-existing dhparam files for FFDHE2048/3072/4096. If you need them for the other two groups you'd have to create them yourself.

Otherwise you could also extend ltc_dh_sets[] by those new groups.

Feel free to re-open if this didn't solve your problem.

xiangfeima commented 10 months ago

I've tried FFDHE groups with existing libtomcrypt and it works as expected. Thank you very much.