Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HashOneShotHelpers.cs
Go to the documentation of this file.
2
3internal static class HashOneShotHelpers
4{
6 {
7 if (hashAlgorithm == HashAlgorithmName.SHA256)
8 {
10 }
11 if (hashAlgorithm == HashAlgorithmName.SHA1)
12 {
14 }
15 if (hashAlgorithm == HashAlgorithmName.SHA512)
16 {
18 }
19 if (hashAlgorithm == HashAlgorithmName.SHA384)
20 {
22 }
23 if (hashAlgorithm == HashAlgorithmName.MD5)
24 {
26 }
28 }
29}
static string Cryptography_UnknownHashAlgorithm
Definition SR.cs:152
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
static byte[] HashData(byte[] key, byte[] source)
Definition HMACMD5.cs:71
static byte[] HashData(byte[] key, byte[] source)
Definition HMACSHA1.cs:79
static byte[] HashData(byte[] key, byte[] source)
Definition HMACSHA256.cs:71
static byte[] HashData(byte[] key, byte[] source)
Definition HMACSHA384.cs:87
static byte[] HashData(byte[] key, byte[] source)
Definition HMACSHA512.cs:87
static int MacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan< byte > key, ReadOnlySpan< byte > source, Span< byte > destination)