2005-06-10 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 10 Jun 2005 14:42:08 +0000 (14:42 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 10 Jun 2005 14:42:08 +0000 (14:42 -0000)
* all: 2.0 beta2 fixes, i.e. mostly added [ComVisible(true)]

svn path=/trunk/mcs/; revision=45759

77 files changed:
mcs/class/corlib/System.Security.Cryptography/AsymmetricAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs
mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs
mcs/class/corlib/System.Security.Cryptography/Base64Constants.cs
mcs/class/corlib/System.Security.Cryptography/ChangeLog
mcs/class/corlib/System.Security.Cryptography/CipherMode.cs
mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs
mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs
mcs/class/corlib/System.Security.Cryptography/CryptoStream.cs
mcs/class/corlib/System.Security.Cryptography/CryptoStreamMode.cs
mcs/class/corlib/System.Security.Cryptography/CryptographicException.cs
mcs/class/corlib/System.Security.Cryptography/CryptographicUnexpectedOperationExcpetion.cs
mcs/class/corlib/System.Security.Cryptography/CspKeyContainerInfo.cs
mcs/class/corlib/System.Security.Cryptography/CspParameters.cs
mcs/class/corlib/System.Security.Cryptography/DES.cs
mcs/class/corlib/System.Security.Cryptography/DSA.cs
mcs/class/corlib/System.Security.Cryptography/DSACryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/DSAParameters.cs
mcs/class/corlib/System.Security.Cryptography/DSASignatureDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/DSASignatureFormatter.cs
mcs/class/corlib/System.Security.Cryptography/DeriveBytes.cs
mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs
mcs/class/corlib/System.Security.Cryptography/HMACMD5.cs
mcs/class/corlib/System.Security.Cryptography/HMACRIPEMD160.cs
mcs/class/corlib/System.Security.Cryptography/HMACSHA1.cs
mcs/class/corlib/System.Security.Cryptography/HMACSHA256.cs
mcs/class/corlib/System.Security.Cryptography/HMACSHA384.cs
mcs/class/corlib/System.Security.Cryptography/HMACSHA512.cs
mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs
mcs/class/corlib/System.Security.Cryptography/ICspAsymmetricAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/KeyNumber.cs
mcs/class/corlib/System.Security.Cryptography/KeySizes.cs
mcs/class/corlib/System.Security.Cryptography/KeyedHashAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/MACTripleDES.cs
mcs/class/corlib/System.Security.Cryptography/MD5.cs
mcs/class/corlib/System.Security.Cryptography/MD5CryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/MaskGenerationMethod.cs
mcs/class/corlib/System.Security.Cryptography/PKCS1MaskGenerationMethod.cs
mcs/class/corlib/System.Security.Cryptography/PaddingMode.cs
mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs
mcs/class/corlib/System.Security.Cryptography/RC2.cs
mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/RIPEMD160.cs
mcs/class/corlib/System.Security.Cryptography/RIPEMD160Managed.cs
mcs/class/corlib/System.Security.Cryptography/RNGCryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/RSA.cs
mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAOAEPKeyExchangeFormatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAPKCS1KeyExchangeDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAPKCS1KeyExchangeFormatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAPKCS1SignatureDeformatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAPKCS1SignatureFormatter.cs
mcs/class/corlib/System.Security.Cryptography/RSAParameters.cs
mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs
mcs/class/corlib/System.Security.Cryptography/Rfc2898DeriveBytes.cs
mcs/class/corlib/System.Security.Cryptography/Rijndael.cs
mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs
mcs/class/corlib/System.Security.Cryptography/RijndaelManagedTransform.cs
mcs/class/corlib/System.Security.Cryptography/SHA1.cs
mcs/class/corlib/System.Security.Cryptography/SHA1CryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/SHA1Managed.cs
mcs/class/corlib/System.Security.Cryptography/SHA256.cs
mcs/class/corlib/System.Security.Cryptography/SHA256Managed.cs
mcs/class/corlib/System.Security.Cryptography/SHA384.cs
mcs/class/corlib/System.Security.Cryptography/SHA384Managed.cs
mcs/class/corlib/System.Security.Cryptography/SHA512.cs
mcs/class/corlib/System.Security.Cryptography/SHA512Managed.cs
mcs/class/corlib/System.Security.Cryptography/SHAConstants.cs
mcs/class/corlib/System.Security.Cryptography/SignatureDescription.cs
mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs
mcs/class/corlib/System.Security.Cryptography/TripleDES.cs
mcs/class/corlib/System.Security.Cryptography/TripleDESCryptoServiceProvider.cs

index c423cdc05055e4f28540f51cddcec02b06ee28be..9447908dd9233a69934207617aa120309fa49ba1 100644 (file)
@@ -6,11 +6,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricAlgorithm : IDisposable {
 
                protected int KeySizeValue;
index 12b2dd66262574cea7ccc4aa1dd79c1478065c73..cf61892e926725df1a14ba704894397a6252e181 100644 (file)
@@ -4,11 +4,7 @@
 // Authors:\r
 //   Thomas Neidhart (tome@sbox.tugraz.at)\r
 //
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
        \r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricKeyExchangeDeformatter {\r
                \r
                public AsymmetricKeyExchangeDeformatter () 
index c024bb0e628ad367feb416f0802f004b0084657a..b78ed23bb23bef01142f1106e49b8af63175cb52 100644 (file)
@@ -4,11 +4,7 @@
 // Authors:\r
 //   Thomas Neidhart (tome@sbox.tugraz.at)\r
 //\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
        \r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricKeyExchangeFormatter {\r
                \r
                public AsymmetricKeyExchangeFormatter ()
index 4c3c2587c9b5e7d5500b184e52d36473dee07931..61a397896b028c08eed028dfea537091ee14fe0a 100644 (file)
@@ -4,11 +4,7 @@
 // Authors:
 //   Thomas Neidhart (tome@sbox.tugraz.at)
 //
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricSignatureDeformatter {
                
                public AsymmetricSignatureDeformatter ()
index 90c8737fbdb4041cb9b919ecbe31414bfd0b8746..f17b4a7ce349ba29ea5e378654f65d02d2bcb400 100644 (file)
@@ -4,11 +4,7 @@
 // Authors:
 //   Thomas Neidhart (tome@sbox.tugraz.at)
 //
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricSignatureFormatter {
                
                public AsymmetricSignatureFormatter () 
index 433fc9b7b568f2202fdf4807a8d2e449a7810999..9a0c6ffc5b272a663813c244ed245d80676bd5a8 100644 (file)
@@ -5,11 +5,7 @@
 //     Sergey Chaban (serge@wildwestsoftware.com)
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 namespace System.Security.Cryptography {
-\r
+
+#if NET_2_0
+       internal static class Base64Constants {\r
+#else\r
        internal sealed class Base64Constants {\r
 \r
                private Base64Constants ()\r
                {\r
                        // Never instantiated.\r
                }
-
+#endif
                // Pre-calculated tables\r
 \r
                public static readonly byte[] EncodeTable = { 
index e84f5e99a049cf50a68a5e3a04bbf3e83515518d..360a4b7d237810da40af9e0641690ab1c0f0b8e9 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-10  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * all: 2.0 beta2 fixes, i.e. mostly added [ComVisible(true)]
+
 2005-06-09  Sebastien Pouliot  <sebastien@ximian.com>
 
        * HMAC.cs: BlockSizeValue has changed from a protected member to
index 0b692c0a58dace5a8aa492b8206d70e4a24893ce..461868782a384eed98f79c87be0f6f89fa775a82 100644 (file)
@@ -5,11 +5,7 @@
 //   Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)
 //
 // Copyright 2001 by Matthew S. Ford.
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public enum CipherMode {
                CBC = 0x1, // Cipher Block Chaining
                ECB, // Electronic Codebook
index 52bd23935c2b92c8c3cfe18e68852a30771a33af..716ced9728c16f48a959ff6e535c3a155688e8a5 100644 (file)
@@ -35,6 +35,9 @@ namespace System.Security.Cryptography {
        // Note: This class isn't used by Mono as all algorithms are provided with
        // 100% managed implementations.
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class CryptoAPITransform : ICryptoTransform {
 
                private bool m_disposed;
index 846466c64ed667c2497bde823d4d5831e28a88e2..e51ce0f45f0b0ff661156a77772a32a112b7d7ac 100644 (file)
@@ -34,6 +34,7 @@ using System.Globalization;
 using System.IO;
 using System.Reflection;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 using System.Security.Permissions;
 using System.Text;
 
@@ -41,6 +42,9 @@ using Mono.Xml;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public class CryptoConfig {
 
        static private object lockObject;
index 986279dc5f39a246d1ad9bbace29a33ac4c50f5a..4c0ab0561a8ed3d6c5612a067cb9a20891433969 100644 (file)
@@ -6,11 +6,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
 using System.IO;
 using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class CryptoStream : Stream {
                private Stream _stream;
                private ICryptoTransform _transform;
index ced82a67a199016c899c0a1792bf3fd901d74f8e..9a2f50e476a2a89853ee0cbe57b17682145bee6e 100644 (file)
@@ -5,10 +5,7 @@
 //   Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)
 //
 // Copyright 2001 by authors.
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public enum CryptoStreamMode {
                Read,
                Write
index 164e50dd83bbdd32772f0e15f041d03a22558b5c..1977e88a4655920e8c0db2fd40b1edf0950ecfa8 100644 (file)
@@ -5,7 +5,7 @@
 //     Thomas Neidhart (tome@sbox.tugraz.at)
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -38,6 +38,7 @@ namespace System.Security.Cryptography {
 
        [Serializable]
 #if NET_2_0
+       [ComVisible (true)]
        public class CryptographicException : SystemException, _Exception {
 #else
        public class CryptographicException : SystemException {
index 06f360d924dd1fc412e21079c5d2bdbc8873e5b2..28f445ce4b182ce315a50665b76f4bd633d57cf3 100644 (file)
@@ -5,7 +5,7 @@
 //     Thomas Neidhart (tome@sbox.tugraz.at)
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -27,7 +27,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
@@ -35,6 +34,9 @@ using System.Runtime.Serialization;
 namespace System.Security.Cryptography {
 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class CryptographicUnexpectedOperationException : CryptographicException {
 
                public CryptographicUnexpectedOperationException ()
index 5b66db2a80d9d047b644f6e2b2a6857ba0b024cf..a079d7d114fcfa1e9903e9d9e9ba67ef693e698e 100644 (file)
 
 #if NET_2_0
 
+using System.Runtime.InteropServices;
 using System.Security.AccessControl;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public sealed class CspKeyContainerInfo {
 
                private CspParameters _params;
index 8cb3e1c519b15c039ed8f0150b69890a5503e486..1645d5a264167567db60820a524047b0fd825acf 100644 (file)
 //
 
 #if NET_2_0
+using System.Runtime.InteropServices;
 using System.Security.AccessControl;
 #endif
 \r
 namespace System.Security.Cryptography {\r
 \r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class CspParameters {
 \r
                private CspProviderFlags _Flags;\r
index 8a14a874ed1f2ceca9a3fb1b7ede8d9a8758b640..68b7e055c68a21f8b9080fcf53dc3a8cd57d5946 100644 (file)
@@ -29,6 +29,7 @@
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 // References:
 // a.  FIPS PUB 46-3: Data Encryption Standard
@@ -36,6 +37,9 @@ using System.Globalization;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public abstract class DES : SymmetricAlgorithm {
 
        private const int keySizeByte = 8;
index 0f10dc8b909ecf04ae46dde63b3a115dfc33a0c4..37f24f93160a47c1c84d56b538f33ad149f35d4e 100644 (file)
@@ -28,8 +28,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Text;
 
 using Mono.Xml;
@@ -41,6 +41,9 @@ using Mono.Security;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class DSA : AsymmetricAlgorithm {
 
 #if NET_2_0
index f9e784468bbbdeda48403d9b6112aa13a5d5fb2c..7e000fbdfcef3041192da69e35298b139885f963 100644 (file)
@@ -9,7 +9,7 @@
 // (C) 2002
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
 // Portions (C) 2003 Ben Maurer
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -40,6 +40,7 @@ using Mono.Security.Cryptography;
 namespace System.Security.Cryptography {
 
 #if NET_2_0
+       [ComVisible (true)]
        public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm {
 #elif NET_1_1
        public sealed class DSACryptoServiceProvider : DSA {
index 3428caa222bf898fd442251d596e89013c457fd6..9669c14c36d8a121e18a45c44ba7dc783d3179ae 100644 (file)
@@ -4,11 +4,7 @@
 // Author:\r
 //   Thomas Neidhart (tome@sbox.tugraz.at)\r
 //
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 \r
        [Serializable]\r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public struct DSAParameters {
 \r
                public int Counter;\r
index bbc69b4b855b9f916b3c7945d90c55e64605e1b8..a0b74e1fe0f8688095d06d765be35e6350632673 100644 (file)
@@ -6,7 +6,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class DSASignatureDeformatter : AsymmetricSignatureDeformatter {
        
                private DSA dsa;
index 893d93c321d1b306c80ccc6df8f5c786699ec628..584e575fa04266959a76d425eb7022735b44af0e 100644 (file)
@@ -6,7 +6,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class DSASignatureFormatter : AsymmetricSignatureFormatter {
        
                private DSA dsa;
index 1733ef826682a1afd26a31cb9a7647e7aa89551f..3616eb9657f040bb5d7606de19437a72adf29c39 100644 (file)
@@ -4,11 +4,7 @@
 // Author:\r
 //   Thomas Neidhart (tome@sbox.tugraz.at)\r
 //\r
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 \r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class DeriveBytes {\r
        \r
                protected DeriveBytes ()
index 9991fba2f467a9795d854f98257aff9a5dda5dbb..59b71d2587ef6d082269fcb316b108307559c9a9 100644 (file)
@@ -4,11 +4,7 @@
 // Author:
 //   Sergey Chaban (serge@wildwestsoftware.com)
 //
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public enum FromBase64TransformMode : int {
                IgnoreWhiteSpaces,
                DoNotIgnoreWhiteSpaces
        }
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class FromBase64Transform : ICryptoTransform {
 
                private FromBase64TransformMode mode;
index 39eb9ad0b3e1bb061ebd73200987af8db194f2cd..bc940171f175b7cfbdb01146dadc0ca8e55b4d18 100644 (file)
@@ -2,13 +2,10 @@
 // HMACMD5.cs: HMAC implementation using MD5
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -32,7 +29,7 @@
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
@@ -45,10 +42,13 @@ namespace System.Security.Cryptography {
        // b.   IETF RFC2202: Test Cases for HMAC-MD5 and HMAC-SHA-1
        //      (include C source for HMAC-MD5 and HAMAC-SHA1)
        //      http://www.ietf.org/rfc/rfc2202.txt
-
+       [ComVisible (true)]
        public class HMACMD5 : HMAC {
 
-               public HMACMD5 () : this (KeyBuilder.Key (8)) {}
+               public HMACMD5 () 
+                       : this (KeyBuilder.Key (8))
+               {
+               }
 
                public HMACMD5 (byte[] rgbKey) : base ()
                {
@@ -56,12 +56,7 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 128;
                        Key = rgbKey;
                }
-
-               ~HMACMD5 () 
-               {
-                       Dispose (false);
-               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index 379917e0315bfbb016726966521dcae7a468268a..88295ca934c0ddf0ef0f74c0e7d0568a2fbc5c9d 100644 (file)
@@ -2,13 +2,10 @@
 // HMACRIPEMD160.cs: HMAC implementation using RIPEMD160
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public class HMACRIPEMD160 : HMAC {
 
-               public HMACRIPEMD160 () : this (KeyBuilder.Key (8)) {}
+               public HMACRIPEMD160 () 
+                       : this (KeyBuilder.Key (8))
+               {
+               }
 
                public HMACRIPEMD160 (byte[] rgbKey) : base () 
                {
@@ -48,12 +49,7 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 160;
                        Key = rgbKey;
                }
-
-               ~HMACRIPEMD160 () 
-               {
-                       Dispose (false);
-               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index dcecc27d9faf7d46f0a6f775dc48bfa21de32d79..59cf46211bd69daa6f2007731023aaf94921ed12 100644 (file)
@@ -2,10 +2,10 @@
 // HMACSHA1.cs: Handles HMAC with SHA-1
 //
 // Author:
-//     Sebastien Pouliot <sebastien@ximian.com>
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -28,6 +28,7 @@
 //
 
 using System.IO;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
@@ -133,9 +134,11 @@ namespace System.Security.Cryptography {
                }
        }
 #else
+       [ComVisible (true)]
        public class HMACSHA1 : HMAC {
 
-               public HMACSHA1 () : this (KeyBuilder.Key (8))
+               public HMACSHA1 ()
+                       : this (KeyBuilder.Key (8))
                {
                }
 
@@ -145,11 +148,6 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 160;
                        Key = rgbKey;
                }
-
-               ~HMACSHA1 () 
-               {
-                       Dispose (false);
-               }
        }
 #endif
 }
index 9763a708a34cb7e951f351d0f7f15313ae80f0b6..00f0f540a714f4195c077bb8dde6246887319b75 100644 (file)
@@ -2,13 +2,10 @@
 // HMACSHA256.cs: HMAC implementation using SHA256
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public class HMACSHA256 : HMAC {
 
-               public HMACSHA256 () : this (KeyBuilder.Key (8)) {}
+               public HMACSHA256 () 
+                       : this (KeyBuilder.Key (8))
+               {
+               }
 
                public HMACSHA256 (byte[] rgbKey) : base () 
                {
@@ -48,12 +49,7 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 256;
                        Key = rgbKey;
                }
-
-               ~HMACSHA256 () 
-               {
-                       Dispose (false);
-               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index df391867b993e61f83bb360938e07a056967761e..eeeac22e78db5d3456528adce1d058ad569b5c92 100644 (file)
@@ -2,13 +2,10 @@
 // HMACSHA384.cs: HMAC implementation using SHA384
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public class HMACSHA384 : HMAC {
 
-               public HMACSHA384 () : this (KeyBuilder.Key (8)) {}
+               public HMACSHA384 () 
+                       : this (KeyBuilder.Key (8))
+               {
+               }
 
                public HMACSHA384 (byte[] rgbKey) : base () 
                {
@@ -48,12 +49,7 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 384;
                        Key = rgbKey;
                }
-
-               ~HMACSHA384 () 
-               {
-                       Dispose (false);
-               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index 918cc0525d14d8ee25f6e77dd4ca0bf318abb15f..7c89a800d9c6ff18cf9198269ca709ab8d987e55 100644 (file)
@@ -2,13 +2,10 @@
 // HMACSHA512.cs: HMAC implementation using SHA512
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public class HMACSHA512 : HMAC {
 
-               public HMACSHA512 () : this (KeyBuilder.Key (8)) {}
+               public HMACSHA512 ()
+                       : this (KeyBuilder.Key (8))
+               {
+               }
 
                public HMACSHA512 (byte[] rgbKey) : base () 
                {
@@ -48,12 +49,7 @@ namespace System.Security.Cryptography {
                        HashSizeValue = 512;
                        Key = rgbKey;
                }
-
-               ~HMACSHA512 () 
-               {
-                       Dispose (false);
-               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index 2ab98e393ef2c198cea8b340a671d1a416c176f6..14e5d116c57cfe50d3cc3678f480f9e83369a066 100644 (file)
 
 using System.Globalization;
 using System.IO;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class HashAlgorithm : ICryptoTransform {
 
                protected byte[] HashValue;
index 2fa0837705331610fdfb097520f1766089714f26..dda99d8b81bce2bbea00862ff8a563b9bba18e0f 100644 (file)
@@ -5,11 +5,7 @@
 //   Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)
 //
 // Copyright 2001 by Matthew S. Ford.
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public interface ICryptoTransform : IDisposable {
 
                bool CanReuseTransform {
index 89281c6299b0afc8d5992504ada3182be1fda23d..89952b584e57972cbe534497d03479e92998ce87 100644 (file)
@@ -2,13 +2,10 @@
 // ICspAsymmetricAlgorithm.cs: interface for CSP based asymmetric algorithm
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public interface ICspAsymmetricAlgorithm {
 
                byte[] ExportCspBlob (bool includePrivateParameters);
@@ -46,4 +44,4 @@ namespace System.Security.Cryptography {
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index 6ad4e4af59e9673b22c3ca2fa283a5a3f5dafdc4..2c95ef9dfd5f2b8e9000783cd57d8d65ba682f54 100644 (file)
@@ -2,10 +2,10 @@
 // KeyNumber.cs: Key Number for CAPI containers
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+       [ComVisible (true)]
        public enum KeyNumber {
                Exchange = 1,
                Signature = 2
index 6594d2a7661e5a50e67a4732b48ae45f8232f974..a673bd774efc02cc613caa80d2a15a8507c4f503 100644 (file)
@@ -7,11 +7,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Copyright 2001 by Matthew S. Ford.
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
        
 #if NET_1_0
        public class KeySizes {
 #else
+       #if NET_2_0
+       [ComVisible (true)]
+       #endif
        public sealed class KeySizes {
 #endif
                private int _maxSize;
index 72f086dd149c78c4fb6b3761448b4df6436ffb78..7b9bd53432e1ac12d8bdffb046f4f3a8fe3b60d8 100644 (file)
@@ -5,11 +5,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public abstract class KeyedHashAlgorithm : HashAlgorithm {
        
        protected byte[] KeyValue;
index f24dad755527248c83502492b1986a7da60d0d25..73eb0e58fbaa3df3a5026494a34867033fdef5aa 100644 (file)
@@ -2,10 +2,10 @@
 // MACTripleDES.cs: Handles MAC with TripleDES
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -39,6 +39,9 @@ namespace System.Security.Cryptography {
        //      http://www.itl.nist.gov/fipspubs/fip81.htm
        
        // LAMESPEC: MACTripleDES == MAC-CBC using TripleDES (not MAC-CFB).
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class MACTripleDES: KeyedHashAlgorithm {
        
                private TripleDES tdes;
index bf56211c84048fbadbb49d4071a46e9794f2e782..6fa2d7bebdefa6ed0e3a8d86a995df1fd416cea0 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class MD5 : HashAlgorithm {\r
 
                // Why is it protected when others abstract hash classes are public ?\r
index 3a036375149a588ed5ad3353e2c192934e6bb7ab..a2403407d2ddc131d142227b65b57ed16fe2256d 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
 #if NET_1_0
        public class MD5CryptoServiceProvider : MD5 {
 #else
+       #if NET_2_0
+       [ComVisible (true)]
+       #endif
        public sealed class MD5CryptoServiceProvider : MD5 {
 #endif
                private const int BLOCK_SIZE_BYTES =  64;
index 44e21e33c582ef80e5142f46f4ad2156bc303e1c..5fb42372fd25e7e633877d1c4f333cc723e9b9fc 100644 (file)
@@ -5,11 +5,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class MaskGenerationMethod {
 
                protected MaskGenerationMethod () 
index f15b15eaf9abf5a41c5825d633d0e7a3a59fa3d8..92a34842e4a7e2475e9e499a01e678665f772894 100644 (file)
@@ -2,13 +2,10 @@
 // PKCS1MaskGenerationMethod.cs: Handles PKCS#1 mask generation.
 //
 // Author:
-//     Sebastien Pouliot (spouliot@motus.com)
+//     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -30,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
@@ -39,6 +36,9 @@ namespace System.Security.Cryptography {
        // a.   PKCS#1: RSA Cryptography Standard 
        //      http://www.rsasecurity.com/rsalabs/pkcs/pkcs-1/index.html
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class PKCS1MaskGenerationMethod : MaskGenerationMethod {
 
                private string hashName;
index 2bb1070768b630e6b0205e5f35d6c50e539e205a..fd9af0f96d080958126ed365b04e0f9f5f68b40f 100644 (file)
@@ -7,11 +7,7 @@
 //
 // Copyright 2001 by Matthew S. Ford.
 // Portions (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        [Serializable]
        public enum PaddingMode {
                None = 0x1,
index 0dd5e368808297d5535156d49bae085a7c0ce0c1..a722a7857c3f81e830bd8b7ecfeb73a1a00d5a1d 100644 (file)
@@ -28,6 +28,7 @@
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Text;
 
 namespace System.Security.Cryptography {
@@ -38,6 +39,9 @@ namespace System.Security.Cryptography {
 // b.  IETF RFC2898: PKCS #5: Password-Based Cryptography Specification Version 2.0
 //     http://www.rfc-editor.org/rfc/rfc2898.txt
 
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public class PasswordDeriveBytes : DeriveBytes {
 
        private string HashNameValue;
index 70119078722b5da2f65815b47320b229fd56af63..17d6a1802077673222843411320b7a1e6b3f030d 100644 (file)
@@ -5,7 +5,7 @@
 //     Andrew Birkett (andy@nobugs.org)
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
@@ -35,6 +35,9 @@ 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 abstract class RC2 : SymmetricAlgorithm {
 
                public static new RC2 Create () 
index 83aa05cce2cc88b99817a8fec9fe5a0c8bdff9c6..e40e02c32335827d190113e47cad828cd7187afd 100644 (file)
@@ -6,7 +6,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -39,6 +39,9 @@ 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;
index 1d2ddc4c788089ea9390c90b9334eb0af66fbb36..9b936c95d78f0c1a1ec7640bc761dd6bc17fed78 100644 (file)
@@ -5,10 +5,7 @@
 //     Pieter Philippaerts (Pieter@mentalis.org)
 //
 // (C) 2003 The Mentalis.org Team (http://www.mentalis.org/)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        /// <summary>
        /// Represents the abstract class from which all implementations of the <see cref="RIPEMD160"/> hash algorithm inherit.
        /// </summary>
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class RIPEMD160 : HashAlgorithm {
                /// <summary>
                /// Initializes a new instance of <see cref="RIPEMD160"/>.
@@ -68,4 +68,4 @@ namespace System.Security.Cryptography {
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index bdb22deb34edd571b7476663b6f33cd17c2f3c12..9f1cf467b61dc3ce164322ee326c0e6a0237bfe1 100644 (file)
@@ -8,7 +8,7 @@
 //     - http://www.esat.kuleuven.ac.be/~cosicart/ps/AB-9601/
 //
 // (C) 2003 The Mentalis.org Team (http://www.mentalis.org/)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -38,6 +38,7 @@ namespace System.Security.Cryptography {
        /// <summary>
        /// Computes the <see cref="RIPEMD160"/> hash for the input data.
        /// </summary>
+       [ComVisible (true)]
        public class RIPEMD160Managed : RIPEMD160 { // not 'sealed' according to preliminary docs; this may change though
                /// <summary>
                /// Initializes a new instance of the <see cref="RIPEMD160Managed"/> class. This class cannot be inherited.
index cded574758d9950d3728de97b79ae6d130c34afa..71fcdc062f1e0aaaa88826b4c5238ff32b04da39 100644 (file)
@@ -33,9 +33,9 @@
 // Great Power without form."
 // -- The Verrah Rubicon of Verena, Book One
 
-using System;
 using System.Globalization;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 using System.Text;
 
 namespace System.Security.Cryptography {
@@ -43,6 +43,9 @@ namespace System.Security.Cryptography {
 #if NET_1_0
        public class RNGCryptoServiceProvider : RandomNumberGenerator {
 #else
+       #if NET_2_0
+       [ComVisible (true)]
+       #endif
        public sealed class RNGCryptoServiceProvider : RandomNumberGenerator {
 #endif
                private static object _lock;
index f6de1290118b2ebb627c5e6ed1bb90568c87d26b..8212f592396295dc050cefe6f80d6c13dd1efa70 100644 (file)
@@ -7,11 +7,7 @@
 //
 // (C) 2002
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Text;
 
 using Mono.Xml;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class RSA : AsymmetricAlgorithm {
 
                public static new RSA Create () 
index fe16408076f7e745f8b61a101e6cb5cf7d533285..c3cf93d1a505384f0cf05eda0a5fe248b4139f0d 100644 (file)
@@ -7,7 +7,7 @@
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
 // Portions (C) 2003 Ben Maurer
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -36,7 +36,8 @@ using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
-#if (NET_2_0)
+#if NET_2_0
+       [ComVisible (true)]
        public sealed class RSACryptoServiceProvider : RSA, ICspAsymmetricAlgorithm {
 #else
        public sealed class RSACryptoServiceProvider : RSA {
index d748ef1133a819f89b3aa346e1636683e5814f2a..be624743d187fa32386ea4a5bf9cec688d224580 100644 (file)
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter {
        
                private RSA rsa;
index 2c18e4c062b6603f8cf3bcee764bddc3d701022f..73978afe039abba5265b918da9eebbcb3aaf89da 100644 (file)
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAOAEPKeyExchangeFormatter : AsymmetricKeyExchangeFormatter {
        
                private RSA rsa;
index de08fc94444c6e2b24a5d1ea80973e9e761f3850..7035ad2fa0ec528452fa07ecc3d2bdd7f755daf1 100644 (file)
@@ -5,11 +5,7 @@
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter {
        
                private RSA rsa;
index e87d4edee9fb2359ccf47dc6bca11d3b85df070e..8214690d439b410146c08f0abfe92680be4d3b73 100644 (file)
@@ -28,6 +28,7 @@
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
@@ -35,6 +36,9 @@ namespace System.Security.Cryptography {
        // LAMESPEC: There seems no way to select a hash algorithm. The default 
        // algorithm, is SHA1 because the class use the PKCS1MaskGenerationMethod -
        // which default to SHA1.
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAPKCS1KeyExchangeFormatter: AsymmetricKeyExchangeFormatter
        {
                private RSA rsa;
index 3da5da568f862b152766bf1e9a0a215b2d75aec5..ef33e1366fa9f45be5c6ddb1ab8bc81f6f18026a 100644 (file)
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAPKCS1SignatureDeformatter : AsymmetricSignatureDeformatter {
        
                private RSA rsa;
index 3ae6ac5ae330c831379ce5864f6b8608184a57fc..df4323ad37d6791087ab7da3e3eab115296910cb 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class RSAPKCS1SignatureFormatter : AsymmetricSignatureFormatter {
        
                private RSA rsa;
index 6da7398c70944d140bc2882375d5fc67c09edfe8..66b62d18086a311ecdb8326ea4531cec567ffb5a 100644 (file)
@@ -5,10 +5,7 @@
 //   Dan Lewis (dihlewis@yahoo.co.uk)\r
 //\r
 // (C) 2002\r
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
        \r
        [Serializable]\r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public struct RSAParameters {\r
                [NonSerialized]\r
                public byte[] P;\r
index aaa6819016c0beee10493c3e4525233100f0f13f..fd549bb5eb73bcc1eb5d3cff99c58b1a20f04c7f 100644 (file)
@@ -5,11 +5,7 @@
 //   Duco Fijma (duco@lorentz.xs4all.nl)
 //
 //   (C) 2002 Duco Fijma
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class RandomNumberGenerator {
        
                public RandomNumberGenerator ()
index 65232d808744e31fe4f44a57ff0982020b4168f1..6d8d94e415d7e978b32d86acdb7320b1a52dc1e7 100644 (file)
 
 #if NET_2_0
 
+using System.Runtime.InteropServices;
 using System.Text;
 
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
 
+       [ComVisible (true)]
        public class Rfc2898DeriveBytes : DeriveBytes {
 
                private const int defaultIterations = 1000;
index dabcda01e6f636555108220391439b10681bef4d..7b156ec428d70d50bd0439c6dde8acb471871510 100644 (file)
@@ -5,11 +5,7 @@
 //          Andrew Birkett (andy@nobugs.org)\r
 //\r
 // (C) 2002\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -31,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
@@ -39,6 +35,9 @@ namespace System.Security.Cryptography {
        // a.   FIPS PUB 197: Advanced Encryption Standard
        //      http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
 \r
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class Rijndael : SymmetricAlgorithm {\r
 \r
                public static new Rijndael Create () \r
index cc105962836098cbe48cba8f3e687411be57d838..604a5de2032dc8ee4855c6bc1954846ebff6d47d 100644 (file)
@@ -8,11 +8,7 @@
 //
 // (C) 2002
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -34,7 +30,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
@@ -43,6 +39,9 @@ namespace System.Security.Cryptography {
        // a.   FIPS PUB 197: Advanced Encryption Standard
        //      http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class RijndaelManaged : Rijndael {
                
                public RijndaelManaged ()
index 561503b8bb761ae57df9b041ced9db383e501cfb..bee2279cdaea6feb39b7d1d7983277719702d73e 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -28,7 +28,7 @@
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
@@ -37,6 +37,7 @@ namespace System.Security.Cryptography {
        // (and more general) one (RijndaelTransform) located in 
        // RijndaelManaged.cs.
 
+       [ComVisible (true)]
        public sealed class RijndaelManagedTransform: ICryptoTransform, IDisposable {
 
                private RijndaelTransform _st;
index 8a2689b3026f9f620dc7d21fb93a23f002ac143f..ed305e3dfcf3eceb3980d0daae5f1329f0019eb1 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class SHA1 : HashAlgorithm {\r
 
                protected SHA1 ()\r
index 4e73b4e524bd6acf9c69bc64654669f0189eea87..9f5c9db6260a2cf289acf9e13780da1d9e6039dc 100644 (file)
@@ -35,6 +35,8 @@
 // Mono must provide those two class for binary compatibility.
 // In our case both class are wrappers around a managed internal class SHA1Internal.
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
        internal class SHA1Internal {
@@ -439,6 +441,9 @@ namespace System.Security.Cryptography {
                }
        }
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class SHA1CryptoServiceProvider : SHA1 {
 
                private SHA1Internal sha;
index e4a2089e3696a5aca56a4fdd071243f7899b47f9..77679567d526068491425059bb693b8ea3476b24 100644 (file)
@@ -5,11 +5,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -31,6 +27,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
 
 // Note:
@@ -40,32 +38,33 @@ namespace System.Security.Cryptography {
 // Mono must provide those two class for binary compatibility.
 // In our case both class are wrappers around a managed internal class SHA1Internal.
 
-public class SHA1Managed : SHA1 {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
+       public class SHA1Managed : SHA1 {
 
-       private SHA1Internal sha;
+               private SHA1Internal sha;
 
-       public SHA1Managed () 
-       {
-               sha = new SHA1Internal ();
-       }
+               public SHA1Managed () 
+               {
+                       sha = new SHA1Internal ();
+               }
 
-       protected override void HashCore (byte[] rgb, int start, int size) 
-       {
-               State = 1;
-               sha.HashCore (rgb, start, size);
-       }
+               protected override void HashCore (byte[] rgb, int start, int size) 
+               {
+                       State = 1;
+                       sha.HashCore (rgb, start, size);
+               }
 
-       protected override byte[] HashFinal () 
-       {
-               State = 0;
-               return sha.HashFinal ();
-       }
+               protected override byte[] HashFinal () 
+               {
+                       State = 0;
+                       return sha.HashFinal ();
+               }
 
-       public override void Initialize () 
-       {
-               sha.Initialize ();
+               public override void Initialize () 
+               {
+                       sha.Initialize ();
+               }
        }
 }
-
-}
-
index dcbcced48d1038aeb89e6c8269abcb5d44873d57..7003449fec8a1f59979aba61ea94ffb8e6bef04f 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class SHA256 : HashAlgorithm {\r
 
                public SHA256 () \r
index 82cc6672a527248214bd831b4264479d1618818b..52fada0ee32d4f5204848c55ee99de333e58f407 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class SHA256Managed : SHA256 {
 
                private const int BLOCK_SIZE_BYTES =  64;
index 2240e862c5336a1fce452e3a8d3eb723c4038614..8e56c38b8cd89277712824aaabc698117103ea0e 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class SHA384 : HashAlgorithm {\r
 
                public SHA384 () \r
index 60accca2375b33961328a572c56da7d7912c371a..45eb1551e1dca3beee99d1af2da9eec016194fc9 100644 (file)
@@ -8,11 +8,7 @@
 // (C) 2002
 // Implementation translated from Bouncy Castle JCE (http://www.bouncycastle.org/)
 // See bouncycastle.txt for license.
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public class SHA384Managed : SHA384 {
 
        private byte[] xBuf;
index a99165fdce0edaec6783baaa043b886032f81085..e833f63737302e9b40505c5c6cf7f53d87ff4ea2 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+
+using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class SHA512 : HashAlgorithm {\r
 
                public SHA512 () \r
index f74d6318c2bd37a871e12d6ef7d778140a15a00b..44584ac448598ba29b4ff1f2fd56d9dd7028985d 100644 (file)
@@ -8,11 +8,7 @@
 // (C) 2002
 // Implementation translated from Bouncy Castle JCE (http://www.bouncycastle.org/)
 // See bouncycastle.txt for license.
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public class SHA512Managed : SHA512 {
 
        private byte[] xBuf;
index c8f5dbea2a2926c1b8e31ae655e0830c94bfe5a0..8e907f1c399c4ddc3857e0f7bb3d5a041a8edc81 100644 (file)
@@ -1,11 +1,7 @@
 //
 // System.Security.Cryptography.SHAConstants.cs
 //
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 namespace System.Security.Cryptography {\r
 
+#if NET_2_0
+       internal static class SHAConstants {
+#else
        internal sealed class SHAConstants {
 
                private SHAConstants ()
                {
                        // Never instantiated.\r
                }
-
+#endif
                // SHA-256 Constants
                // Represent the first 32 bits of the fractional parts of the
                // cube roots of the first sixty-four prime numbers
index 37fb8ac64a8d7c850008f8392689c974e35dbdce..d6e938a5bacc4a9a47ca462d497275f309088839 100644 (file)
@@ -6,11 +6,7 @@
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // http://www.csharpfriends.com/Members/Main/Classes/get_class.aspx?assembly=mscorlib,%20Version=1.0.3300.0,%20Culture=neutral,%20PublicKeyToken=b77a5c561934e089&namespace=System.Security.Cryptography&class=SignatureDescription
 // Those 2 classes are returned by CryptoConfig.CreateFromName and used in XMLDSIG
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Security;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+[ComVisible (true)]
+#endif
 public class SignatureDescription {
 
        private string _DeformatterAlgorithm;
index 49894ab8994e30dfca714ba2f8d3dc736c55bd29..85d220c129b29b8fc0d5203d20ad964a38dcee16 100644 (file)
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class SymmetricAlgorithm : IDisposable {
                protected int BlockSizeValue; 
                protected int FeedbackSizeValue; 
index 0d6a8c4b4c050649b31a3e09f4b9a39430b0686a..382db461c5550a493348b901112fffb4282568cc 100644 (file)
@@ -5,7 +5,7 @@
 //   Sergey Chaban (serge@wildwestsoftware.com)
 //
 // (C) 2004 Novell (http://www.novell.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class ToBase64Transform : ICryptoTransform {
 
                private bool m_disposed;
index 7d6980cdf82605762de402eedea634fddebc61d2..8d7e664d8e165a5ca41472ab0241d5e254503799 100644 (file)
@@ -5,7 +5,7 @@
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -27,8 +27,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Security.Cryptography;
 
 namespace System.Security.Cryptography {
@@ -40,6 +40,9 @@ 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 {
 
        public TripleDES ()
index cf9a6f74685321d616aac21c6746c7e42f81bda8..09384a734a7343887d273e0c9bf7e01dfe8b7777 100644 (file)
@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography {
@@ -39,6 +39,9 @@ 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 ()