SHA384.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // System.Security.Cryptography SHA384 Class implementation
  3. //
  4. // Authors:
  5. // Matthew S. Ford ([email protected])
  6. // Sebastien Pouliot ([email protected])
  7. //
  8. // Copyright 2001 by Matthew S. Ford.
  9. // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
  10. //
  11. using System.Security.Cryptography;
  12. namespace System.Security.Cryptography {
  13. /// <summary>
  14. /// Common base class for all derived SHA384 implementations.
  15. /// </summary>
  16. public abstract class SHA384 : HashAlgorithm {
  17. /// <summary>
  18. /// Called from constructor of derived class.
  19. /// </summary>
  20. public SHA384 ()
  21. {
  22. HashSizeValue = 384;
  23. }
  24. /// <summary>
  25. /// Creates the default derived class.
  26. /// </summary>
  27. public static new SHA384 Create ()
  28. {
  29. return Create ("System.Security.Cryptography.SHA384");
  30. }
  31. /// <summary>
  32. /// Creates a new derived class.
  33. /// </summary>
  34. /// <param name="hashName">Specifies which derived class to create</param>
  35. public static new SHA384 Create (string hashName)
  36. {
  37. return (SHA384) CryptoConfig.CreateFromName (hashName);
  38. }
  39. }
  40. }