public RsaKeyParameters(
bool isPrivate,
BigInteger modulus,
BigInteger exponent)
: base(isPrivate)
{
if (modulus == null)
throw new ArgumentNullException("modulus");
if (exponent == null)
throw new ArgumentNullException("exponent");
if (modulus.SignValue <= 0)
throw new ArgumentException("Not a valid RSA modulus", "modulus");
if (exponent.SignValue <= 0)
throw new ArgumentException("Not a valid RSA exponent", "exponent");
this.modulus = modulus;
this.exponent = exponent;
}