X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.Cryptography%2FTripleDES.cs;h=0bc887a15a3f825c2d09959a8c289aea98ab706b;hb=a4bdc71082a110bbbd4f87c203081d2f5b348341;hp=4c818a3f8a23a8e4791d1f8bc6f4ca3c85b88d70;hpb=93703b4ef8bdcf1d6cf336e14f534454221730c5;p=mono.git diff --git a/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs b/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs index 4c818a3f8a2..0bc887a15a3 100644 --- a/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs +++ b/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs @@ -40,16 +40,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 +87,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 +131,4 @@ public abstract class TripleDES : SymmetricAlgorithm { } } +