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

◆ GetAlgorithmId()

static int System.Security.Cryptography.RSACryptoServiceProvider.GetAlgorithmId ( HashAlgorithmName hashAlgorithm)
inlinestaticprivate

Definition at line 430 of file RSACryptoServiceProvider.cs.

431 {
432 return hashAlgorithm.Name switch
433 {
434 "MD5" => 32771,
435 "SHA1" => 32772,
436 "SHA256" => 32780,
437 "SHA384" => 32781,
438 "SHA512" => 32782,
439 _ => throw new CryptographicException(System.SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name),
440 };
441 }
static string Cryptography_UnknownHashAlgorithm
Definition SR.cs:152
Definition SR.cs:7

References System.SR.Cryptography_UnknownHashAlgorithm, and System.Security.Cryptography.HashAlgorithmName.Name.

Referenced by System.Security.Cryptography.RSACryptoServiceProvider.SignHash(), and System.Security.Cryptography.RSACryptoServiceProvider.VerifyHash().