diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2002-10-12 20:22:31 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2002-10-12 20:22:31 +0400 |
commit | da82e0e5cbe78a87c7016d70c666003b588b6c60 (patch) | |
tree | 24d2503c231f824c740d664252701db58d363ceb /mcs/class | |
parent | 2d2547d0b2f611a1a06d007375dbabac384904da (diff) |
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
svn path=/trunk/mcs/; revision=8199
Diffstat (limited to 'mcs/class')
8 files changed, 37 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Security.Cryptography/ChangeLog b/mcs/class/corlib/System.Security.Cryptography/ChangeLog index 12334439df5..faaabd8238e 100644 --- a/mcs/class/corlib/System.Security.Cryptography/ChangeLog +++ b/mcs/class/corlib/System.Security.Cryptography/ChangeLog @@ -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 (). diff --git a/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs b/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs index ea16089740e..4f23237d553 100755 --- a/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs +++ b/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs @@ -58,6 +58,11 @@ namespace System.Security.Cryptography }
[MonoTODO]
+ void System.IDisposable.Dispose ()
+ {
+ }
+
+ [MonoTODO]
public int TransformBlock(byte[] inputBuffer, int inputOffset,
int inputCount, byte[] outputBuffer, int outputOffset)
{
diff --git a/mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs b/mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs index 86842abd57c..856ef859ebe 100644 --- a/mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs +++ b/mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs @@ -79,6 +79,10 @@ namespace System.Security.Cryptography { } } + void System.IDisposable.Dispose () + { + } + private void EncPreprocess (byte [] workBuff) { byte [] iv = this.iv; diff --git a/mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs b/mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs index 5fbf6acaa2c..77a80939857 100644 --- a/mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs +++ b/mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs @@ -82,6 +82,10 @@ namespace System.Security.Cryptography { } + void System.IDisposable.Dispose () + { + } + private int Filter (byte [] buffer, int offset, int count) { diff --git a/mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs b/mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs index d9add73a4e7..84316a2c864 100644 --- a/mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs +++ b/mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs @@ -7,7 +7,6 @@ // Copyright 2001 by Matthew S. Ford.
//
-
using System.Security.Cryptography;
namespace System.Security.Cryptography {
@@ -17,7 +16,7 @@ namespace System.Security.Cryptography { /// This works by stringing together one or more ICryptoTransform classes with a stream.
/// Data is passed from one to the next without the need of outside buffering/intervention.
/// </summary>
- public interface ICryptoTransform {
+ public interface ICryptoTransform : IDisposable {
/// <summary>
/// Whether the function can transform multiple blocks at a time.
diff --git a/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs b/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs index de913274d24..a8de632d262 100644 --- a/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs +++ b/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs @@ -117,6 +117,10 @@ namespace System.Security.Cryptography { }
}
+ void System.IDisposable.Dispose ()
+ {
+ }
+
public byte[] pitable = {
0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed,
0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d,
diff --git a/mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs b/mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs index 3f52d6828e1..c6752f9bec9 100644 --- a/mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs +++ b/mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs @@ -147,6 +147,10 @@ namespace System.Security.Cryptography { }
}
+ void System.IDisposable.Dispose ()
+ {
+ }
+
private void XorInto(byte[] src, byte[] dest)
{
if (src.Length != dest.Length) {
diff --git a/mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs b/mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs index 8f72bbee4ee..cd241850a2a 100644 --- a/mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs +++ b/mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs @@ -57,6 +57,11 @@ namespace System.Security.Cryptography { } + void System.IDisposable.Dispose () + { + } + + /// <summary> /// </summary> public int TransformBlock (byte [] inputBuffer, |