Mastercard / pkcs11-tools

A set of tools to manage objects on PKCS#11 cryptographic tokens. Compatible with many PKCS#11 library, including major HSM brands, NSS and softoken.
Other
159 stars 30 forks source link

implement RSA custom public key exponents, for key generation #56

Closed keldonin closed 7 months ago

keldonin commented 8 months ago

This PR implements the ability to specify public exponents other than Fermat-4 (65537) when generating an RSA key. Note: it is assumed that the underlying PKCS#11 library deals with the exponent provided.

new optional parameter to p11keygen: -e <DECIMAL_VALUE>, the default being 65537.