Merge pull request #498 from Unroll-Me/master
[mono.git] / mcs / class / corlib / System.Security.Cryptography / RSA.cs
index 0f65c7e46dfba58dc39d2809792cac290ad51a71..1a575931845239bfd6082d76cbeb07ac6556b2bf 100644 (file)
@@ -37,14 +37,16 @@ using Mono.Xml;
 
 namespace System.Security.Cryptography {
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public abstract class RSA : AsymmetricAlgorithm {
 
                public static new RSA Create () 
                {
+#if FULL_AOT_RUNTIME
+                       return new System.Security.Cryptography.RSACryptoServiceProvider ();
+#else
                        return Create ("System.Security.Cryptography.RSA");
+#endif
                }
 
                public static new RSA Create (string algName)
@@ -52,11 +54,7 @@ namespace System.Security.Cryptography {
                        return (RSA) CryptoConfig.CreateFromName (algName);
                }
 
-#if NET_2_0
                protected RSA ()
-#else
-               public RSA ()
-#endif
                {
                }
 
@@ -64,7 +62,7 @@ namespace System.Security.Cryptography {
 
                public abstract byte[] DecryptValue (byte[] rgb);
 
-               public abstract RSAParameters ExportParameters (bool include);
+               public abstract RSAParameters ExportParameters (bool includePrivateParameters);
 
                public abstract void ImportParameters (RSAParameters parameters);