| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // System.Security.Cryptography SHA384 Class implementation
- //
- // Authors:
- // Matthew S. Ford ([email protected])
- // Sebastien Pouliot ([email protected])
- //
- // Copyright 2001 by Matthew S. Ford.
- // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
- //
- using System.Security.Cryptography;
- namespace System.Security.Cryptography {
- /// <summary>
- /// Common base class for all derived SHA384 implementations.
- /// </summary>
- public abstract class SHA384 : HashAlgorithm {
- /// <summary>
- /// Called from constructor of derived class.
- /// </summary>
- public SHA384 ()
- {
- HashSizeValue = 384;
- }
- /// <summary>
- /// Creates the default derived class.
- /// </summary>
- public static new SHA384 Create ()
- {
- return Create ("System.Security.Cryptography.SHA384");
- }
-
- /// <summary>
- /// Creates a new derived class.
- /// </summary>
- /// <param name="hashName">Specifies which derived class to create</param>
- public static new SHA384 Create (string hashName)
- {
- return (SHA384) CryptoConfig.CreateFromName (hashName);
- }
- }
- }
|