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
RSAPKCS1KeyExchangeFormatter.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020002F8 RID: 760
8 [ComVisible(true)]
10 {
11 // Token: 0x060019C1 RID: 6593 RVA: 0x00037658 File Offset: 0x00035858
13 {
14 }
15
16 // Token: 0x060019C2 RID: 6594 RVA: 0x0003766C File Offset: 0x0003586C
18 {
19 do
20 {
21 base..ctor();
22 }
23 while (key == null);
25 }
26
27 // Token: 0x170002CB RID: 715
28 // (get) Token: 0x060019C3 RID: 6595 RVA: 0x00037690 File Offset: 0x00035890
29 public override string Parameters
30 {
31 get
32 {
33 return "<enc:KeyEncryptionMethod enc:Algorithm=\"http://www.microsoft.com/xml/security/algorithm/PKCS1-v1.5-KeyEx\" xmlns:enc=\"http://www.microsoft.com/xml/security/encryption/v1.0\" />";
34 }
35 }
36
37 // Token: 0x170002CC RID: 716
38 // (get) Token: 0x060019C4 RID: 6596 RVA: 0x000376A4 File Offset: 0x000358A4
39 // (set) Token: 0x060019C5 RID: 6597 RVA: 0x000376B8 File Offset: 0x000358B8
41 {
42 get
43 {
44 return this.RngValue;
45 }
46 set
47 {
49 }
50 }
51
52 // Token: 0x060019C6 RID: 6598 RVA: 0x000376CC File Offset: 0x000358CC
53 public override void SetKey(AsymmetricAlgorithm key)
54 {
55 while (key == null)
56 {
57 }
59 }
60
61 // Token: 0x060019C7 RID: 6599 RVA: 0x000376EC File Offset: 0x000358EC
62 public override byte[] CreateKeyExchange(byte[] rgbData)
63 {
64 if (rgbData != null)
65 {
66 RSA rsaKey = this._rsaKey;
67 if (rsaKey != null)
68 {
70 RSA rsaKey2 = this._rsaKey;
71 if (rsaKey == null)
72 {
73 }
74 if (!true)
75 {
76 }
78 }
79 }
80 string resourceString = Environment.GetResourceString("No asymmetric key object has been associated with this formatter object.");
82 }
83
84 // Token: 0x060019C8 RID: 6600 RVA: 0x0000207A File Offset: 0x0000027A
85 public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
86 {
87 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
88 }
89
90 // Token: 0x170002CD RID: 717
91 // (get) Token: 0x060019C9 RID: 6601 RVA: 0x00037738 File Offset: 0x00035938
92 private bool OverridesEncrypt
93 {
94 get
95 {
96 if (this._rsaOverridesEncrypt == null)
97 {
98 RSA rsaKey = this._rsaKey;
99 Type type;
100 Type type2;
101 if ((type != null && type == null) || type2 == null || type2 != null)
102 {
103 }
104 }
105 throw new ArrayTypeMismatchException();
106 }
107 }
108
109 // Token: 0x04000D10 RID: 3344
111
112 // Token: 0x04000D11 RID: 3345
113 private RSA _rsaKey;
114
115 // Token: 0x04000D12 RID: 3346
116 private bool? _rsaOverridesEncrypt;
117 }
118}
class f__AnonymousType0<< Count > j__TPar
static string GetResourceString(string key)
override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)