public RSAKeyPairModel(RSAParameters privateKey, RSAParameters publicKey) { if (privateKey.Equals(default(RSAParameters)) || publicKey.Equals(default(RSAParameters))) { throw new ArgumentException(); } this._privateKey = RSAParametersModel.ConvertFromRSAParameters(privateKey); this._publicKey = RSAParametersModel.ConvertFromRSAParameters(publicKey); }