Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateHMAC() [2/2]

static IncrementalHash System.Security.Cryptography.IncrementalHash.CreateHMAC ( HashAlgorithmName hashAlgorithm,
ReadOnlySpan< byte > key )
inlinestatic

Definition at line 215 of file IncrementalHash.cs.

216 {
217 if (string.IsNullOrEmpty(hashAlgorithm.Name))
218 {
220 }
221 return new IncrementalHash(hashAlgorithm, new HMACCommon(hashAlgorithm.Name, key, -1));
222 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
IncrementalHash(HashAlgorithmName name, HashProvider hash)

References System.Security.Cryptography.IncrementalHash.IncrementalHash(), System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.key, and System.Security.Cryptography.HashAlgorithmName.Name.