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