public override void ImportParameters(RSAParameters parameters) { _rsa.Modulus = parameters.Modulus; _rsa.Exponent = parameters.Exponent; _rsa.P = parameters.P; _rsa.Q = parameters.Q; _rsa.DP = parameters.DP; _rsa.DQ = parameters.DQ; _rsa.InverseQ = parameters.InverseQ; _rsa.D = parameters.D; bool privateKey = false; if (parameters.D != null && parameters.D.Length > 0) { privateKey = true; } _rsa.BuildRawKey(privateKey); }