terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
KeyPairPersistence.cs
Go to the documentation of this file.
1using System;
3using System.IO;
7using System.Text;
11using Mono.Xml;
12
14{
15 [global::Cpp2ILInjected.Token(Token = "0x2000044")]
16 internal class KeyPairPersistence
17 {
18 [global::Cpp2ILInjected.Token(Token = "0x600012F")]
19 [global::Cpp2ILInjected.Address(RVA = "0x1AB8C88", Offset = "0x1AB8C88", Length = "0x8")]
20 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "Common", MemberParameters = new object[]
21 {
22 typeof(int),
23 typeof(bool)
24 }, ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "Common", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "ImportCspBlob", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "Common", MemberParameters = new object[]
28 {
29 typeof(int),
30 typeof(bool)
31 }, ReturnType = typeof(void))]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "Common", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
34 public KeyPairPersistence(global::System.Security.Cryptography.CspParameters parameters)
35 {
36 throw null;
37 }
38
39 [global::Cpp2ILInjected.Token(Token = "0x6000130")]
40 [global::Cpp2ILInjected.Address(RVA = "0x1AB8C90", Offset = "0x1AB8C90", Length = "0x80")]
41 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "Copy", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(global::System.Security.Cryptography.CspParameters))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
46 public KeyPairPersistence(global::System.Security.Cryptography.CspParameters parameters, string keyPair)
47 {
48 throw null;
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x1700001A")]
52 public string Filename
53 {
54 [global::Cpp2ILInjected.Token(Token = "0x6000131")]
55 [global::Cpp2ILInjected.Address(RVA = "0x1AB8D9C", Offset = "0x1AB8D9C", Length = "0x184")]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Load", ReturnType = typeof(bool))]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Save", ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Remove", ReturnType = typeof(void))]
59 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Globalization.CultureInfo), Member = "get_InvariantCulture", ReturnType = typeof(global::System.Globalization.CultureInfo))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_ContainerName", ReturnType = typeof(string))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
63 {
64 typeof(global::System.IFormatProvider),
65 typeof(string),
66 typeof(object),
67 typeof(object),
68 typeof(object)
69 }, ReturnType = typeof(string))]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_UserPath", ReturnType = typeof(string))]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_MachinePath", ReturnType = typeof(string))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Path), Member = "Combine", MemberParameters = new object[]
73 {
74 typeof(string),
75 typeof(string)
76 }, ReturnType = typeof(string))]
77 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
78 get
79 {
80 throw null;
81 }
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x1700001B")]
85 public string KeyValue
86 {
87 [global::Cpp2ILInjected.Token(Token = "0x6000132")]
88 [global::Cpp2ILInjected.Address(RVA = "0x1AB9A6C", Offset = "0x1AB9A6C", Length = "0x8")]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
90 get
91 {
92 throw null;
93 }
94 [global::Cpp2ILInjected.Token(Token = "0x6000133")]
95 [global::Cpp2ILInjected.Address(RVA = "0x1AB9A74", Offset = "0x1AB9A74", Length = "0x14")]
96 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "OnKeyGenerated", MemberParameters = new object[]
97 {
98 typeof(object),
99 typeof(global::System.EventArgs)
100 }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "OnKeyGenerated", MemberParameters = new object[]
102 {
103 typeof(object),
104 typeof(global::System.EventArgs)
105 }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
107 set
108 {
109 throw null;
110 }
111 }
112
113 [global::Cpp2ILInjected.Token(Token = "0x1700001C")]
114 public global::System.Security.Cryptography.CspParameters Parameters
115 {
116 [global::Cpp2ILInjected.Token(Token = "0x6000134")]
117 [global::Cpp2ILInjected.Address(RVA = "0x1AB9A98", Offset = "0x1AB9A98", Length = "0x8")]
118 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "get_CspKeyContainerInfo", ReturnType = typeof(global::System.Security.Cryptography.CspKeyContainerInfo))]
119 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "ExportCspBlob", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(byte[]))]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "Copy", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(global::System.Security.Cryptography.CspParameters))]
122 get
123 {
124 throw null;
125 }
126 }
127
128 [global::Cpp2ILInjected.Token(Token = "0x6000135")]
129 [global::Cpp2ILInjected.Address(RVA = "0x1AB9AA0", Offset = "0x1AB9AA0", Length = "0x1A0")]
130 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "Common", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(void))]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "Common", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspParameters) }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.File), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.File), Member = "OpenText", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.IO.StreamReader))]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "FromXml", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
139 public bool Load()
140 {
141 throw null;
142 }
143
144 [global::Cpp2ILInjected.Token(Token = "0x6000136")]
145 [global::Cpp2ILInjected.Address(RVA = "0x1AB9D40", Offset = "0x1AB9D40", Length = "0x238")]
146 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
147 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "OnKeyGenerated", MemberParameters = new object[]
148 {
149 typeof(object),
150 typeof(global::System.EventArgs)
151 }, ReturnType = typeof(void))]
152 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "OnKeyGenerated", MemberParameters = new object[]
153 {
154 typeof(object),
155 typeof(global::System.EventArgs)
156 }, ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.File), Member = "Open", MemberParameters = new object[]
160 {
161 typeof(string),
162 typeof(global::System.IO.FileMode)
163 }, ReturnType = typeof(global::System.IO.FileStream))]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.Encoding), Member = "get_UTF8", ReturnType = typeof(global::System.Text.Encoding))]
165 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.StreamWriter), Member = ".ctor", MemberParameters = new object[]
166 {
167 typeof(global::System.IO.Stream),
168 typeof(global::System.Text.Encoding)
169 }, ReturnType = typeof(void))]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "ToXml", ReturnType = typeof(string))]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "ProtectUser", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "ProtectMachine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
173 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
174 public void Save()
175 {
176 throw null;
177 }
178
179 [global::Cpp2ILInjected.Token(Token = "0x6000137")]
180 [global::Cpp2ILInjected.Address(RVA = "0x1ABA2A0", Offset = "0x1ABA2A0", Length = "0x14")]
181 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "Dispose", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
182 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.DSACryptoServiceProvider), Member = "Dispose", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.File), Member = "Delete", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
186 public void Remove()
187 {
188 throw null;
189 }
190
191 [global::Cpp2ILInjected.Token(Token = "0x1700001D")]
192 private static string UserPath
193 {
194 [global::Cpp2ILInjected.Token(Token = "0x6000138")]
195 [global::Cpp2ILInjected.Address(RVA = "0x1AB9544", Offset = "0x1AB9544", Length = "0x528")]
196 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
197 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
198 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
199 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Enter", MemberParameters = new object[]
200 {
201 typeof(object),
202 typeof(ref bool)
203 }, ReturnType = typeof(void))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Environment), Member = "GetFolderPath", MemberParameters = new object[] { typeof(global::System.Environment.SpecialFolder) }, ReturnType = typeof(string))]
205 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Path), Member = "Combine", MemberParameters = new object[]
206 {
207 typeof(string),
208 typeof(string)
209 }, ReturnType = typeof(string))]
210 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Directory), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Directory), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.IO.DirectoryInfo))]
212 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "IsUserProtected", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "ProtectUser", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
215 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
216 {
217 typeof(string),
218 typeof(object)
219 }, ReturnType = typeof(string))]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.IOException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[]
223 {
224 typeof(string),
225 typeof(global::System.Exception)
226 }, ReturnType = typeof(void))]
227 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 52)]
228 get
229 {
230 throw null;
231 }
232 }
233
234 [global::Cpp2ILInjected.Token(Token = "0x1700001E")]
235 private static string MachinePath
236 {
237 [global::Cpp2ILInjected.Token(Token = "0x6000139")]
238 [global::Cpp2ILInjected.Address(RVA = "0x1AB901C", Offset = "0x1AB901C", Length = "0x528")]
239 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
240 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
241 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
242 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Enter", MemberParameters = new object[]
243 {
244 typeof(object),
245 typeof(ref bool)
246 }, ReturnType = typeof(void))]
247 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Environment), Member = "GetFolderPath", MemberParameters = new object[] { typeof(global::System.Environment.SpecialFolder) }, ReturnType = typeof(string))]
248 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Path), Member = "Combine", MemberParameters = new object[]
249 {
250 typeof(string),
251 typeof(string)
252 }, ReturnType = typeof(string))]
253 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Directory), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
254 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.Directory), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.IO.DirectoryInfo))]
255 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "IsMachineProtected", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
256 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "ProtectMachine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
257 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
258 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
259 {
260 typeof(string),
261 typeof(object)
262 }, ReturnType = typeof(string))]
263 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
264 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.IOException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
265 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[]
266 {
267 typeof(string),
268 typeof(global::System.Exception)
269 }, ReturnType = typeof(void))]
270 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 52)]
271 get
272 {
273 throw null;
274 }
275 }
276
277 [global::Cpp2ILInjected.Token(Token = "0x600013A")]
278 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3D4", Offset = "0x1ABA3D4", Length = "0x4")]
279 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
280 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
281 [MethodImpl(4096)]
282 internal unsafe static extern bool _CanSecure(char* root);
283
284 [global::Cpp2ILInjected.Token(Token = "0x600013B")]
285 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3D8", Offset = "0x1ABA3D8", Length = "0x4")]
286 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
287 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
288 [MethodImpl(4096)]
289 internal unsafe static extern bool _ProtectUser(char* path);
290
291 [global::Cpp2ILInjected.Token(Token = "0x600013C")]
292 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3DC", Offset = "0x1ABA3DC", Length = "0x4")]
293 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
294 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
295 [MethodImpl(4096)]
296 internal unsafe static extern bool _ProtectMachine(char* path);
297
298 [global::Cpp2ILInjected.Token(Token = "0x600013D")]
299 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3E0", Offset = "0x1ABA3E0", Length = "0x4")]
300 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
301 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
302 [MethodImpl(4096)]
303 internal unsafe static extern bool _IsUserProtected(char* path);
304
305 [global::Cpp2ILInjected.Token(Token = "0x600013E")]
306 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3E4", Offset = "0x1ABA3E4", Length = "0x4")]
307 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
308 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
309 [MethodImpl(4096)]
310 internal unsafe static extern bool _IsMachineProtected(char* path);
311
312 [global::Cpp2ILInjected.Token(Token = "0x600013F")]
313 [global::Cpp2ILInjected.Address(RVA = "0x1ABA3E8", Offset = "0x1ABA3E8", Length = "0x98")]
314 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
315 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "ProtectUser", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
316 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "ProtectMachine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
317 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "IsUserProtected", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
318 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "IsMachineProtected", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
319 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
320 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Environment), Member = "get_OSVersion", ReturnType = typeof(global::System.OperatingSystem))]
321 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
322 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
323 private static bool CanSecure(string path)
324 {
325 throw null;
326 }
327
328 [global::Cpp2ILInjected.Token(Token = "0x6000140")]
329 [global::Cpp2ILInjected.Address(RVA = "0x1ABA210", Offset = "0x1ABA210", Length = "0x90")]
330 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Save", ReturnType = typeof(void))]
331 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_UserPath", ReturnType = typeof(string))]
332 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
333 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "CanSecure", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
335 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
336 private static bool ProtectUser(string path)
337 {
338 throw null;
339 }
340
341 [global::Cpp2ILInjected.Token(Token = "0x6000141")]
342 [global::Cpp2ILInjected.Address(RVA = "0x1ABA180", Offset = "0x1ABA180", Length = "0x90")]
343 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Save", ReturnType = typeof(void))]
344 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_MachinePath", ReturnType = typeof(string))]
345 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
346 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "CanSecure", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
347 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
348 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
349 private static bool ProtectMachine(string path)
350 {
351 throw null;
352 }
353
354 [global::Cpp2ILInjected.Token(Token = "0x6000142")]
355 [global::Cpp2ILInjected.Address(RVA = "0x1ABA2B4", Offset = "0x1ABA2B4", Length = "0x90")]
356 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_UserPath", ReturnType = typeof(string))]
357 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
358 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "CanSecure", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
359 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
360 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
361 private static bool IsUserProtected(string path)
362 {
363 throw null;
364 }
365
366 [global::Cpp2ILInjected.Token(Token = "0x6000143")]
367 [global::Cpp2ILInjected.Address(RVA = "0x1ABA344", Offset = "0x1ABA344", Length = "0x90")]
368 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_MachinePath", ReturnType = typeof(string))]
369 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
370 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "CanSecure", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
371 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
372 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
373 private static bool IsMachineProtected(string path)
374 {
375 throw null;
376 }
377
378 [global::Cpp2ILInjected.Token(Token = "0x1700001F")]
379 private bool CanChange
380 {
381 [global::Cpp2ILInjected.Token(Token = "0x6000144")]
382 [global::Cpp2ILInjected.Address(RVA = "0x1AB9A88", Offset = "0x1AB9A88", Length = "0x10")]
383 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
384 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
385 get
386 {
387 throw null;
388 }
389 }
390
391 [global::Cpp2ILInjected.Token(Token = "0x17000020")]
393 {
394 [global::Cpp2ILInjected.Token(Token = "0x6000145")]
395 [global::Cpp2ILInjected.Address(RVA = "0x1ABA480", Offset = "0x1ABA480", Length = "0x10")]
396 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
397 get
398 {
399 throw null;
400 }
401 }
402
403 [global::Cpp2ILInjected.Token(Token = "0x17000021")]
405 {
406 [global::Cpp2ILInjected.Token(Token = "0x6000146")]
407 [global::Cpp2ILInjected.Address(RVA = "0x1AB900C", Offset = "0x1AB900C", Length = "0x10")]
408 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
409 get
410 {
411 throw null;
412 }
413 }
414
415 [global::Cpp2ILInjected.Token(Token = "0x17000022")]
416 private string ContainerName
417 {
418 [global::Cpp2ILInjected.Token(Token = "0x6000147")]
419 [global::Cpp2ILInjected.Address(RVA = "0x1AB8F20", Offset = "0x1AB8F20", Length = "0xEC")]
420 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
421 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_Filename", ReturnType = typeof(string))]
422 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "ToXml", ReturnType = typeof(string))]
423 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
424 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.Encoding), Member = "get_UTF8", ReturnType = typeof(global::System.Text.Encoding))]
425 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.MD5), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.MD5))]
426 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.HashAlgorithm), Member = "ComputeHash", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
427 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Guid), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
428 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Guid), Member = "NewGuid", ReturnType = typeof(global::System.Guid))]
429 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Guid), Member = "ToString", ReturnType = typeof(string))]
430 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
431 get
432 {
433 throw null;
434 }
435 }
436
437 [global::Cpp2ILInjected.Token(Token = "0x6000148")]
438 [global::Cpp2ILInjected.Address(RVA = "0x1AB8D10", Offset = "0x1AB8D10", Length = "0x8C")]
439 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = ".ctor", MemberParameters = new object[]
440 {
441 typeof(global::System.Security.Cryptography.CspParameters),
442 typeof(string)
443 }, ReturnType = typeof(void))]
444 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "get_Parameters", ReturnType = typeof(global::System.Security.Cryptography.CspParameters))]
445 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
446 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CspParameters), Member = ".ctor", MemberParameters = new object[]
447 {
448 typeof(int),
449 typeof(string),
450 typeof(string)
451 }, ReturnType = typeof(void))]
452 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CspParameters), Member = "set_Flags", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.CspProviderFlags) }, ReturnType = typeof(void))]
453 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
454 private global::System.Security.Cryptography.CspParameters Copy(global::System.Security.Cryptography.CspParameters p)
455 {
456 throw null;
457 }
458
459 [global::Cpp2ILInjected.Token(Token = "0x6000149")]
460 [global::Cpp2ILInjected.Address(RVA = "0x1AB9C40", Offset = "0x1AB9C40", Length = "0x100")]
461 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
462 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Load", ReturnType = typeof(bool))]
463 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
464 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Mono.Xml.SecurityParser), Member = ".ctor", ReturnType = typeof(void))]
465 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Mono.Xml.SecurityParser), Member = "LoadXml", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
466 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
467 {
468 typeof(string),
469 typeof(string)
470 }, ReturnType = typeof(bool))]
471 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.SecurityElement), Member = "SearchForChildByTag", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.Security.SecurityElement))]
472 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
473 private void FromXml(string xml)
474 {
475 throw null;
476 }
477
478 [global::Cpp2ILInjected.Token(Token = "0x600014A")]
479 [global::Cpp2ILInjected.Address(RVA = "0x1AB9F78", Offset = "0x1AB9F78", Length = "0x208")]
480 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
481 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(KeyPairPersistence), Member = "Save", ReturnType = typeof(void))]
482 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
483 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = ".ctor", ReturnType = typeof(void))]
484 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Environment), Member = "get_NewLine", ReturnType = typeof(string))]
485 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = "AppendFormat", MemberParameters = new object[]
486 {
487 typeof(string),
488 typeof(object)
489 }, ReturnType = typeof(global::System.Text.StringBuilder))]
490 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = "AppendFormat", MemberParameters = new object[]
491 {
492 typeof(string),
493 typeof(object),
494 typeof(object)
495 }, ReturnType = typeof(global::System.Text.StringBuilder))]
496 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyPairPersistence), Member = "get_ContainerName", ReturnType = typeof(string))]
497 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
498 private string ToXml()
499 {
500 throw null;
501 }
502
503 // Note: this type is marked as 'beforefieldinit'.
504 [global::Cpp2ILInjected.Token(Token = "0x600014B")]
505 [global::Cpp2ILInjected.Address(RVA = "0x1ABA490", Offset = "0x1ABA490", Length = "0x70")]
506 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
507 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
508 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
510 {
511 throw null;
512 }
513
514 [global::Cpp2ILInjected.Token(Token = "0x400013F")]
515 private static bool _userPathExists;
516
517 [global::Cpp2ILInjected.Token(Token = "0x4000140")]
518 private static string _userPath;
519
520 [global::Cpp2ILInjected.Token(Token = "0x4000141")]
521 private static bool _machinePathExists;
522
523 [global::Cpp2ILInjected.Token(Token = "0x4000142")]
524 private static string _machinePath;
525
526 [global::Cpp2ILInjected.Token(Token = "0x4000143")]
527 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
528 private global::System.Security.Cryptography.CspParameters _params;
529
530 [global::Cpp2ILInjected.Token(Token = "0x4000144")]
531 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
532 private string _keyvalue;
533
534 [global::Cpp2ILInjected.Token(Token = "0x4000145")]
535 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
536 private string _filename;
537
538 [global::Cpp2ILInjected.Token(Token = "0x4000146")]
539 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
540 private string _container;
541
542 [global::Cpp2ILInjected.Token(Token = "0x4000147")]
543 private static object lockobj;
544 }
545}
class f__AnonymousType0<< Count > j__TPar
static unsafe bool _IsUserProtected(char *path)
KeyPairPersistence(global::System.Security.Cryptography.CspParameters parameters, string keyPair)
static unsafe bool _CanSecure(char *root)
global::System.Security.Cryptography.CspParameters Parameters
global::System.Security.Cryptography.CspParameters Copy(global::System.Security.Cryptography.CspParameters p)
static unsafe bool _ProtectUser(char *path)
static unsafe bool _IsMachineProtected(char *path)
static unsafe bool _ProtectMachine(char *path)
KeyPairPersistence(global::System.Security.Cryptography.CspParameters parameters)
global::System.Security.Cryptography.CspParameters _params