Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / security / cryptography / sha256.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // <OWNER>Microsoft</OWNER>
7 // 
8
9 //
10 // SHA256.cs
11 //
12 // This abstract class represents the SHA-256 hash algorithm.
13 //
14
15 namespace System.Security.Cryptography {
16     [System.Runtime.InteropServices.ComVisible(true)]
17     public abstract class SHA256 : HashAlgorithm
18     {
19         //
20         // protected constructors
21         //
22
23         protected SHA256() {
24             HashSizeValue = 256;
25         }
26
27         //
28         // public methods
29         //
30
31         new static public SHA256 Create() {
32 #if FULL_AOT_RUNTIME
33             return new System.Security.Cryptography.SHA256Managed ();
34 #else
35             return Create("System.Security.Cryptography.SHA256");
36 #endif
37         }
38
39         new static public SHA256 Create(String hashName) {
40             return (SHA256) CryptoConfig.CreateFromName(hashName);
41         }
42     }
43 }
44