2002-10-12 Sebastien Pouliot <spouliot@videotron.ca>
authorSebastien Pouliot <sebastien@ximian.com>
Sat, 12 Oct 2002 16:22:31 +0000 (16:22 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Sat, 12 Oct 2002 16:22:31 +0000 (16:22 -0000)
* ICryptoTransform.cs: Now inherits from IDisposable
* RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
        * CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
        * RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
        * FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
        * ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
        * DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform

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

mcs/class/corlib/System.Security.Cryptography/ChangeLog
mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs
mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs
mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs
mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs
mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs

index 12334439df5457fd9ff60a0dd7915c3825b0a96a..faaabd8238e833d8ef343016e8061f5ed47c9942 100644 (file)
@@ -1,3 +1,13 @@
+2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
+
+       * ICryptoTransform.cs: Now inherits from IDisposable
+       * RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
+        * CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
+        * RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
+        * FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
+        * ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
+        * DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform
+
 2002-10-11  Duncan Mak  <duncan@ximian.com>
 
        * DESCryptoServiceProvider.cs: Removed unnecessary Dispose ().
index ea16089740e472e15ec5f687bfce8ab881dbf571..4f23237d553a14b1335bdb088aabd8423bda7a83 100755 (executable)
@@ -57,6 +57,11 @@ namespace System.Security.Cryptography
                        }\r
                }\r
 \r
+               [MonoTODO]\r
+                void System.IDisposable.Dispose ()\r
+                {\r
+                }\r
+\r
                [MonoTODO]\r
                public int TransformBlock(byte[] inputBuffer, int inputOffset, \r
                                          int inputCount, byte[] outputBuffer, int outputOffset)\r
index 86842abd57c392eea1d5e6823fca9000b6b1056c..856ef859ebebba3953a9992d81178a187d3a548b 100644 (file)
@@ -79,6 +79,10 @@ namespace System.Security.Cryptography {
                        }
                }
 
+                void System.IDisposable.Dispose ()
+                {
+                }
+                
                private void EncPreprocess (byte [] workBuff) 
                {
                        byte [] iv = this.iv;
index 5fbf6acaa2caaa372d6dc147d879bfb34c59add7..77a809398571962d4115b33024191065302bfde2 100644 (file)
@@ -82,6 +82,10 @@ namespace System.Security.Cryptography {
                }
 
 
+                void System.IDisposable.Dispose ()
+                {
+                }
+
 
                private int Filter (byte [] buffer, int offset, int count)
                {
index d9add73a4e749c45eadfd7c4bcbb7420d0fd6cf4..84316a2c86409d80f1a0df050603cc50b8b0d10e 100644 (file)
@@ -7,7 +7,6 @@
 // Copyright 2001 by Matthew S. Ford.\r
 //\r
 \r
-\r
 using System.Security.Cryptography;\r
 \r
 namespace System.Security.Cryptography {\r
@@ -17,7 +16,7 @@ namespace System.Security.Cryptography {
        /// This works by stringing together one or more ICryptoTransform classes with a stream.\r
        /// Data is passed from one to the next without the need of outside buffering/intervention.\r
        /// </summary>\r
-       public interface ICryptoTransform {\r
+       public interface ICryptoTransform : IDisposable {\r
        \r
                /// <summary>\r
                /// Whether the function can transform multiple blocks at a time.\r
index de913274d2401fbc1a623a349c879840b24380c4..a8de632d2625650c7716b7668d16b4234a0bed7e 100644 (file)
@@ -117,6 +117,10 @@ namespace System.Security.Cryptography {
                        }\r
                }\r
 \r
+                void System.IDisposable.Dispose ()\r
+                {\r
+                }\r
+                \r
                public byte[] pitable = {\r
                        0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, \r
                        0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d,\r
index 3f52d6828e14750998701ce994950f2fd706b123..c6752f9bec9906588eced88ee14ce87e2826d5bc 100644 (file)
@@ -147,6 +147,10 @@ namespace System.Security.Cryptography {
                        }\r
                }\r
 \r
+                void System.IDisposable.Dispose ()\r
+                {\r
+                }\r
+\r
                private void XorInto(byte[] src, byte[] dest) \r
                {\r
                        if (src.Length != dest.Length) {\r
index 8f72bbee4ee8313950d148a10971a4c89dfbad11..cd241850a2aaa5a47ffa7f5368b0d58f06ebf6c8 100644 (file)
@@ -57,6 +57,11 @@ namespace System.Security.Cryptography {
                }
 
 
+                void System.IDisposable.Dispose ()
+                {
+                }
+
+
                /// <summary>
                /// </summary>
                public int TransformBlock (byte [] inputBuffer,