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

◆ VerifyHash()

bool System.Security.Cryptography.DSACryptoServiceProvider.VerifyHash ( byte[] rgbHash,
string? str,
byte[] rgbSignature )
inline

Definition at line 341 of file DSACryptoServiceProvider.cs.

342 {
343 if (rgbHash == null)
344 {
345 throw new ArgumentNullException("rgbHash");
346 }
347 if (rgbSignature == null)
348 {
349 throw new ArgumentNullException("rgbSignature");
350 }
351 int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm);
352 return CapiHelper.VerifySign(SafeProvHandle, SafeKeyHandle, 8704, calgHash, rgbHash, rgbSignature);
353 }
static int NameOrOidToHashAlgId(string nameOrOid, OidGroup oidGroup)
static bool VerifySign(SafeProvHandle hProv, SafeKeyHandle hKey, int calgKey, int calgHash, byte[] hash, byte[] signature)

References Internal.NativeCrypto.CapiHelper.NameOrOidToHashAlgId(), System.str, and Internal.NativeCrypto.CapiHelper.VerifySign().

Referenced by System.Security.Cryptography.DSACryptoServiceProvider.VerifyData(), and System.Security.Cryptography.DSACryptoServiceProvider.VerifySignature().