Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2002-10-12 22:24:54 +0400
committerSebastien Pouliot <sebastien@ximian.com>2002-10-12 22:24:54 +0400
commitf309618e5cc81dd552074dd94848fe0485102e3c (patch)
tree5e2bc9e948f6e49cf13e3c96f57ef86555ecd5ab /mcs
parentda82e0e5cbe78a87c7016d70c666003b588b6c60 (diff)
2002-10-12 Sebastien Pouliot <spouliot@videotron.ca>
* HashAlgorithm.cs: Added Dispose() to HashAlgorithm because it inherits ICryptoTransform svn path=/trunk/mcs/; revision=8200
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs17
1 files changed, 11 insertions, 6 deletions
diff --git a/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs b/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
index c2564eb236e..0ef5ab61ccc 100644
--- a/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
+++ b/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
@@ -34,6 +34,10 @@ namespace System.Security.Cryptography {
return true;
}
}
+
+ void System.IDisposable.Dispose()
+ {
+ }
/// <summary>
/// Computes the entire hash of all the bytes in the byte array.
@@ -50,17 +54,18 @@ namespace System.Security.Cryptography {
/// <summary>
/// Creates the default implementation of the default hash algorithm (SHA1).
/// </summary>
- public static HashAlgorithm Create () {
- return SHA1.Create ();
+ public static HashAlgorithm Create ()
+ {
+ return Create ("System.Security.Cryptography.HashAlgorithm");
}
/// <summary>
/// Creates a specific implementation of the general hash idea.
/// </summary>
- /// <param name="st">FIXME: No clue. Specifies which derived class to create.</param>
- [MonoTODO]
- public static HashAlgorithm Create (string st) {
- return Create ();
+ /// <param name="st">Specifies which derived class to create.</param>
+ public static HashAlgorithm Create (string hashName)
+ {
+ return (HashAlgorithm) CryptoConfig.CreateFromName (hashName);
}
/// <summary>