Base64Table now supports both encoding and decoding tables.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SHA1.cs
1 //\r
2 // System.Security.Cryptography SHA1 Class implementation\r
3 //\r
4 // Authors:\r
5 //   Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)\r
6 //\r
7 // Copyright 2001 by Matthew S. Ford.\r
8 //\r
9 \r
10 \r
11 using System.Security.Cryptography;\r
12 \r
13 namespace System.Security.Cryptography {\r
14         \r
15         /// <summary>\r
16         /// Common base class for all derived SHA1 iplementations.\r
17         /// </summary>\r
18         public abstract class SHA1 : HashAlgorithm {\r
19                 /// <summary>\r
20                 /// Called from constructor of derived class.\r
21                 /// </summary>\r
22                 protected SHA1 () {\r
23                 \r
24                 }\r
25 \r
26         \r
27                 /// <summary>\r
28                 /// Creates the default derived class.\r
29                 /// </summary>\r
30                 public static new SHA1 Create () {\r
31                         return new SHA1CryptoServiceProvider();\r
32                 }\r
33         \r
34                 /// <summary>\r
35                 /// Creates a new derived class.\r
36                 /// </summary>\r
37                 /// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>\r
38                 public static new SHA1 Create (string st) {\r
39                         return Create();\r
40                 }\r
41         }\r
42 }\r
43 \r