Is there a way to generate a 2048
RSA key pair, using RSACryptoServiceProvider
with a custom defined exponent?
new RSACryptoServiceProvider(2048); // = 65537 always
For example, I want to set the exponent to 65535
, but the hard-coded value seems to be 65537
.
I've looked around, but was unable to find any information.
I am trying to generate a new key pair, not import an existing key, using RSACryptoServiceProvider
.
I know that importing an already existent key, I can define modulus, exponent and other factors.
If its not possible, what alternatives do I have?