Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SymmetricAlgorithm.cs
index f915376048f1f79d35fc9c53bb8ed365580c26e1..60b57e7e7536b33dd99ebfab6ab36f4be80bae13 100644 (file)
@@ -58,19 +58,8 @@ namespace System.Security.Cryptography {
                {
                        ModeValue = CipherMode.CBC;
                        PaddingValue = PaddingMode.PKCS7;
-                       m_disposed = false;
                }
 
-#if MOONLIGHT
-               // No Finalizer or IDisposable.Dispose in Silverlight 2.0
-               // Documentation makes it "clear" that Clear MUST BE CALLED to zero out sensitive information
-#else          
-               ~SymmetricAlgorithm () 
-               {
-                       Dispose (false);
-               }
-#endif
-
 #if NET_4_0
                public void Dispose ()
 #else
@@ -240,7 +229,11 @@ namespace System.Security.Cryptography {
                // LAMESPEC: Default is Rijndael - not TripleDES
                public static SymmetricAlgorithm Create () 
                {
+#if FULL_AOT_RUNTIME
+                       return new System.Security.Cryptography.RijndaelManaged ();
+#else
                        return Create ("System.Security.Cryptography.SymmetricAlgorithm");
+#endif
                }
 
                public static SymmetricAlgorithm Create (string algName)