Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AsymmetricSignatureDeformatter.cs
Go to the documentation of this file.
3
5
6[UnsupportedOSPlatform("browser")]
7public abstract class AsymmetricSignatureDeformatter
8{
9 public abstract void SetKey(AsymmetricAlgorithm key);
10
11 public abstract void SetHashAlgorithm(string strName);
12
13 public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature)
14 {
15 if (hash == null)
16 {
17 throw new ArgumentNullException("hash");
18 }
19 SetHashAlgorithm(hash.ToAlgorithmName());
20 return VerifySignature(hash.Hash, rgbSignature);
21 }
22
23 public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
24}
bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature)