New test.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / RijndaelManaged.cs
index 0cec18a0d374cae0e624420c1fef1b2184119a70..f92a6a54f54d962b15b9df9cc7f989b77c679bf5 100644 (file)
@@ -31,6 +31,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !MOONLIGHT
+
 using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
@@ -42,9 +44,7 @@ namespace System.Security.Cryptography {
        // b.   Rijndael Specification
        //      http://csrc.nist.gov/CryptoToolkit/aes/rijndael/Rijndael-ammended.pdf
        
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public sealed class RijndaelManaged : Rijndael {
                
                public RijndaelManaged ()
@@ -63,20 +63,12 @@ namespace System.Security.Cryptography {
                
                public override ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[] rgbIV) 
                {
-#if NET_2_0
                        return new RijndaelManagedTransform (this, false, rgbKey, rgbIV);
-#else
-                       return new RijndaelTransform (this, false, rgbKey, rgbIV);
-#endif
                }
                
                public override ICryptoTransform CreateEncryptor (byte[] rgbKey, byte[] rgbIV) 
                {
-#if NET_2_0
                        return new RijndaelManagedTransform (this, true, rgbKey, rgbIV);
-#else
-                       return new RijndaelTransform (this, true, rgbKey, rgbIV);
-#endif
                }
        }
        
@@ -1460,3 +1452,6 @@ namespace System.Security.Cryptography {
                #endregion
        }
 }
+
+#endif
+