Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / mscorlib / system / security / cryptography / sha1.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // <OWNER>[....]</OWNER>
7 // 
8
9 //
10 // SHA1.cs
11 //
12
13 namespace System.Security.Cryptography {
14     [System.Runtime.InteropServices.ComVisible(true)]
15     public abstract class SHA1 : HashAlgorithm
16     {
17         protected SHA1() {
18             HashSizeValue = 160;
19         }
20
21         //
22         // public methods
23         //
24
25         new static public SHA1 Create() {
26 #if FULL_AOT_RUNTIME
27             return new System.Security.Cryptography.SHA1CryptoServiceProvider ();
28 #else
29             return Create("System.Security.Cryptography.SHA1");
30 #endif
31         }
32
33         new static public SHA1 Create(String hashName) {
34             return (SHA1) CryptoConfig.CreateFromName(hashName);
35         }
36     }
37 }
38