| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // System.Security.Cryptography SHA256 Class implementation
- //
- // Authors:
- // Matthew S. Ford ([email protected])
- //
- // Copyright 2001 by Matthew S. Ford.
- //
- using System.Security.Cryptography;
- namespace System.Security.Cryptography {
-
- /// <summary>
- /// Common base class for all derived SHA256 iplementations.
- /// Abstract.
- /// </summary>
- public abstract class SHA256 : HashAlgorithm {
-
- /// <summary>
- /// Called from constructor of derived class.
- /// </summary>
- protected SHA256 () {
-
- }
-
- /// <summary>
- /// Creates the default derived class.
- /// </summary>
- public static new SHA256 Create () {
- return new SHA256Managed ();
- }
-
- /// <summary>
- /// Creates a new derived class.
- /// </summary>
- /// <param name="st">FIXME: No clue. Specifies which derived class to create?</param>
- public static new SHA256 Create (string st) {
- return Create ();
- }
- }
- }
|