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

◆ SignHash() [3/3]

byte[] System.Security.Cryptography.RSACryptoServiceProvider.SignHash ( byte[] rgbHash,
string? str )
inline

Definition at line 342 of file RSACryptoServiceProvider.cs.

343 {
344 if (rgbHash == null)
345 {
346 throw new ArgumentNullException("rgbHash");
347 }
348 if (PublicOnly)
349 {
350 throw new CryptographicException(System.SR.Cryptography_CSP_NoPrivateKey);
351 }
352 int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm);
353 return SignHash(rgbHash, calgHash);
354 }
static int NameOrOidToHashAlgId(string nameOrOid, OidGroup oidGroup)
static string Cryptography_CSP_NoPrivateKey
Definition SR.cs:48
Definition SR.cs:7

References System.SR.Cryptography_CSP_NoPrivateKey, Internal.NativeCrypto.CapiHelper.NameOrOidToHashAlgId(), System.Security.Cryptography.RSACryptoServiceProvider.PublicOnly, System.Security.Cryptography.RSACryptoServiceProvider.SignHash(), and System.str.

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