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.55k stars 457 forks source link

rsa: add rsa key generate with bignumber public exponent #569

Closed cneveux closed 3 years ago

cneveux commented 3 years ago

Function rsa_make_key() limits the RSA key generates to a public exponent of type long (32 bits or 64 bits). RSA standard specify that public exponent e can be between 65537 (included) and 2^256 (excluded).

Add function rsa_make_key_bn_e to use a bignumber public exponent.

Signed-off-by: Cedric Neveux cedric.neveux@nxp.com

Checklist

cneveux commented 3 years ago

Cool thanks

If you rebase now on top of develop I can merge this :)

Done.