<PackageReference Include="BouncyCastle.Cryptography" Version="2.2.0" />

RsaKeyPairGenerator

protected static readonly BigInteger DefaultPublicExponent

protected const int DefaultTests = 100

protected static readonly BigInteger One

protected virtual BigInteger ChooseRandomPrime(int bitlength, BigInteger e)

Choose a random prime value for use with RSA

public virtual void Init(KeyGenerationParameters parameters)