use MOONLIGHT symbol
[mono.git] / mcs / class / corlib / System.Security.Cryptography / RC2CryptoServiceProvider.cs
index 4986a248964ad1fe994ae4fc6ba6a452b724b50d..6a5d8461ac051421ff8ee69dedae29570ce6e097 100644 (file)
@@ -28,6 +28,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !MOONLIGHT
+
 using System.Globalization;
 using System.Runtime.InteropServices;
 
@@ -39,11 +41,8 @@ namespace System.Security.Cryptography {
        // a.   IETF RFC2286: A Description of the RC2(r) Encryption Algorithm
        //      http://www.ietf.org/rfc/rfc2268.txt
        
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public sealed class RC2CryptoServiceProvider : RC2 {
-
                private bool _useSalt;
        
                public RC2CryptoServiceProvider ()
@@ -54,11 +53,7 @@ namespace System.Security.Cryptography {
                        get { return base.EffectiveKeySize; }
                        set {
                                if (value != KeySizeValue) {
-#if NET_1_1
                                        throw new CryptographicUnexpectedOperationException (
-#else
-                                       throw new CryptographicException (
-#endif
                                                Locale.GetText ("Effective key size must match key size for compatibility"));
                                }
                                base.EffectiveKeySize = value; 
@@ -84,14 +79,12 @@ namespace System.Security.Cryptography {
                {
                        KeyValue = KeyBuilder.Key (KeySizeValue >> 3);
                }
-#if NET_2_0
                [MonoTODO ("Use salt in algorithm")]
                [ComVisible (false)]
                public bool UseSalt {
                        get { return _useSalt; }
                        set { _useSalt = value; }
                }
-#endif
        }
        
        internal class RC2Transform : SymmetricTransform {
@@ -319,3 +312,6 @@ namespace System.Security.Cryptography {
                };
        }
 }
+
+#endif
+