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