Merge pull request #1505 from esdrubal/tzifloatingrule
[mono.git] / mcs / class / corlib / System.Security.Cryptography / TripleDESCryptoServiceProvider.cs
index 98651d248d1195756e31c704c97105e0a0954a39..ed8b1393304e889fb0351ce4c4bb134474f55146 100644 (file)
@@ -27,8 +27,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if !NET_2_1 || MONOTOUCH
-
 using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
@@ -41,9 +39,7 @@ 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 sealed class TripleDESCryptoServiceProvider : TripleDES {
        
                public TripleDESCryptoServiceProvider ()
@@ -86,11 +82,9 @@ namespace System.Security.Cryptography {
                
                public TripleDESTransform (TripleDES algo, bool encryption, byte[] key, byte[] iv) : base (algo, encryption, iv) 
                {
-#if NET_2_0
                        if (key == null) {
                                key = GetStrongKey ();
                        }
-#endif
                        // note: checking weak keys also checks valid key length
                        if (TripleDES.IsWeakKey (key)) {
                                string msg = Locale.GetText ("This is a known weak key.");
@@ -150,5 +144,3 @@ namespace System.Security.Cryptography {
        }
 }
 
-#endif
-