New test.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / TripleDES.cs
index 4c818a3f8a23a8e4791d1f8bc6f4ca3c85b88d70..f368f7ca1ca147118a8796d1a429d063fa29976c 100644 (file)
@@ -27,6 +27,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !MOONLIGHT
+
 using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Security.Cryptography;
@@ -40,16 +42,10 @@ namespace System.Security.Cryptography {
 //     not free :-(
 //     http://webstore.ansi.org/ansidocstore/product.asp?sku=ANSI+X9%2E52%2D1998
 
-#if NET_2_0
 [ComVisible (true)]
-#endif
 public abstract class TripleDES : SymmetricAlgorithm {
 
-#if NET_2_0
        protected TripleDES ()
-#else
-       public TripleDES ()
-#endif
        {
                // from SymmetricAlgorithm
                KeySizeValue = 192;
@@ -93,10 +89,8 @@ public abstract class TripleDES : SymmetricAlgorithm {
        //      if ( b == c ) then TripleDES == DES(a) (hence weak key)
        public static bool IsWeakKey (byte[] rgbKey)
        {
-#if NET_2_0
                if (rgbKey == null)
                        throw new CryptographicException (Locale.GetText ("Null Key"));
-#endif
                // 128 bits (16 bytes) is 3 DES with 2 keys
                if (rgbKey.Length == 16) {
                        // weak if first half == second half
@@ -139,3 +133,6 @@ public abstract class TripleDES : SymmetricAlgorithm {
 }
 
 }
+
+#endif
+