SHA1.cs 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.Security.Cryptography SHA1 Class implementation
  3. //
  4. // Authors:
  5. // Matthew S. Ford ([email protected])
  6. //
  7. // Copyright 2001 by Matthew S. Ford.
  8. //
  9. using System.Security.Cryptography;
  10. namespace System.Security.Cryptography {
  11. /// <summary>
  12. /// Common base class for all derived SHA1 iplementations.
  13. /// </summary>
  14. public abstract class SHA1 : HashAlgorithm {
  15. /// <summary>
  16. /// Called from constructor of derived class.
  17. /// </summary>
  18. protected SHA1 () {
  19. }
  20. /// <summary>
  21. /// Creates the default derived class.
  22. /// </summary>
  23. public static new SHA1 Create () {
  24. return new SHA1CryptoServiceProvider();
  25. }
  26. /// <summary>
  27. /// Creates a new derived class.
  28. /// </summary>
  29. /// <param name="st">FIXME: No clue. Specifies which derived class to create?</param>
  30. public static new SHA1 Create (string st) {
  31. return Create();
  32. }
  33. }
  34. }