terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
RSAPKCS1SignatureDeformatter.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000316 RID: 790
8 [ComVisible(true)]
10 {
11 // Token: 0x06001AD6 RID: 6870 RVA: 0x00039F00 File Offset: 0x00038100
13 {
14 }
15
16 // Token: 0x06001AD7 RID: 6871 RVA: 0x00039F14 File Offset: 0x00038114
20
21 // Token: 0x06001AD8 RID: 6872 RVA: 0x00039F28 File Offset: 0x00038128
22 public override void SetHashAlgorithm(string strName)
23 {
24 while (strName == null)
25 {
26 }
28 }
29
30 // Token: 0x06001AD9 RID: 6873 RVA: 0x00039F40 File Offset: 0x00038140
31 public override void SetKey(AsymmetricAlgorithm key)
32 {
33 while (key == null)
34 {
35 }
36 this.rsa = key;
37 }
38
39 // Token: 0x06001ADA RID: 6874 RVA: 0x00039F60 File Offset: 0x00038160
40 public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
41 {
42 RSA rsa;
43 string text;
44 do
45 {
46 rsa = this.rsa;
47 if (rsa == null)
48 {
49 goto IL_0024;
50 }
51 text = this.hashName;
52 if (text == null)
53 {
54 goto IL_002A;
55 }
56 if (rgbHash == null)
57 {
58 goto IL_0035;
59 }
60 }
61 while (rgbSignature == null);
63 IL_0024:
64 return "No public key available." != null;
65 IL_002A:
66 string text2 = Locale.GetText("Missing hash algorithm.");
67 IL_0035:
68 return "rgbHash" != null;
69 }
70
71 // Token: 0x04000DAA RID: 3498
72 private RSA rsa;
73
74 // Token: 0x04000DAB RID: 3499
75 private string hashName;
76 }
77}
class f__AnonymousType0<< Count > j__TPar
static string GetText(string msg)
Definition Locale.cs:8
static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
Definition PKCS1.cs:55
override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)