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

◆ VerifyData() [7/8]

virtual bool System.Security.Cryptography.DSA.VerifyData ( Stream data,
byte[] signature,
HashAlgorithmName hashAlgorithm )
inlinevirtualinherited

Definition at line 265 of file DSA.cs.

266 {
267 if (data == null)
268 {
269 throw new ArgumentNullException("data");
270 }
271 if (signature == null)
272 {
273 throw new ArgumentNullException("signature");
274 }
275 if (string.IsNullOrEmpty(hashAlgorithm.Name))
276 {
278 }
279 byte[] rgbHash = HashData(data, hashAlgorithm);
280 return VerifySignature(rgbHash, signature);
281 }
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition DSA.cs:69
bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
static Exception HashAlgorithmNameNullOrEmpty()
Definition DSA.cs:524

References System.Security.Cryptography.DSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.DSA.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.DSA.VerifySignature().