[corlib] Parse datetime string using culture calendar. Fixes #18052
[mono.git] / mcs / class / corlib / System.Security.Cryptography / DESCryptoServiceProvider.cs
index d8ca27891ce106c9cec5c1e2d8e3ca0294c32cd7..452b278f9c16c159e1d82d45a89cee9477925c1a 100644 (file)
@@ -420,12 +420,10 @@ namespace System.Security.Cryptography {
                        : base (symmAlgo, encryption, iv)
                {
                        byte[] clonedKey = null;
-#if NET_2_0
                        if (key == null) {
                                key = GetStrongKey ();
                                clonedKey = key; // no need to clone
                        }
-#endif
                        // note: checking (semi-)weak keys also checks valid key length
                        if (DES.IsWeakKey (key) || DES.IsSemiWeakKey (key)) {
                                string msg = Locale.GetText ("This is a known weak, or semi-weak, key.");
@@ -659,9 +657,7 @@ namespace System.Security.Cryptography {
                }
        } 
        
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public sealed class DESCryptoServiceProvider : DES {
        
                public DESCryptoServiceProvider ()
@@ -689,3 +685,4 @@ namespace System.Security.Cryptography {
                }
        }
 }
+