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
X520.cs
Go to the documentation of this file.
1using System;
2
3namespace Mono.Security.X509
4{
5 // Token: 0x02000021 RID: 33
6 public class X520
7 {
8 // Token: 0x0600017C RID: 380 RVA: 0x000075AC File Offset: 0x000057AC
9 public X520()
10 {
11 }
12
13 // Token: 0x02000022 RID: 34
14 public abstract class AttributeTypeAndValue
15 {
16 // Token: 0x0600017D RID: 381 RVA: 0x000075C0 File Offset: 0x000057C0
17 protected AttributeTypeAndValue(string oid, int upperBound)
18 {
19 this.oid = oid;
21 this.encoding = byte.MaxValue;
22 }
23
24 // Token: 0x0600017E RID: 382 RVA: 0x000075EC File Offset: 0x000057EC
25 protected AttributeTypeAndValue(string oid, int upperBound, byte encoding)
26 {
27 this.oid = oid;
30 }
31
32 // Token: 0x17000076 RID: 118
33 // (get) Token: 0x0600017F RID: 383 RVA: 0x00007614 File Offset: 0x00005814
34 // (set) Token: 0x06000180 RID: 384 RVA: 0x00007628 File Offset: 0x00005828
35 public string Value
36 {
37 get
38 {
39 return this.attrValue;
40 }
41 set
42 {
43 string text = this.attrValue;
44 if (text != null)
45 {
46 int stringLength = text._stringLength;
47 int num = this.upperBound;
48 }
50 }
51 }
52
53 // Token: 0x17000077 RID: 119
54 // (get) Token: 0x06000181 RID: 385 RVA: 0x00007668 File Offset: 0x00005868
55 public ASN1 ASN1
56 {
57 get
58 {
59 byte b = this.encoding;
60 return this.GetASN1(b);
61 }
62 }
63
64 // Token: 0x06000182 RID: 386 RVA: 0x00007684 File Offset: 0x00005884
65 internal ASN1 GetASN1(byte encoding)
66 {
67 /*
68An exception occurred when decompiling this method (06000182)
69
70ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Security.ASN1 Mono.Security.X509.X520/AttributeTypeAndValue::GetASN1(System.Byte)
71
72 ---> System.Exception: Basic block has to end with unconditional control flow.
73{
74 Block_0:
75 stloc:uint8(var_0_06, call:uint8(AttributeTypeAndValue::SelectBestEncoding, ldloc:AttributeTypeAndValue(this)))
76 stloc:ASN1(var_1_12, call:ASN1(ASN1Convert::FromOid, ldfld:string(AttributeTypeAndValue::oid, ldloc:AttributeTypeAndValue(this))))
77 stloc:Encoding(var_4_1A, callgetter:Encoding(Encoding::get_ASCII))
78 stloc:string(var_5_22, ldfld:string(AttributeTypeAndValue::attrValue, ldloc:AttributeTypeAndValue(this)))
79 stloc:Encoding(var_7_2C, callgetter:Encoding(Encoding::get_BigEndianUnicode))
80 stloc:Encoding(var_9_36, callgetter:Encoding(Encoding::get_ASCII))
81}
82
83 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
84 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
85 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
86 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
87 --- End of inner exception stack trace ---
88 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
89 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
90*/;
91 }
92
93 // Token: 0x06000183 RID: 387 RVA: 0x000076C8 File Offset: 0x000058C8
94 internal ASN1 GetASN1()
95 {
96 byte b = this.encoding;
97 return this.GetASN1(b);
98 }
99
100 // Token: 0x06000184 RID: 388 RVA: 0x000076E4 File Offset: 0x000058E4
101 public byte[] GetBytes(byte encoding)
102 {
103 /*
104An exception occurred when decompiling this method (06000184)
105
106ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.X509.X520/AttributeTypeAndValue::GetBytes(System.Byte)
107
108 ---> System.Exception: Basic block has to end with unconditional control flow.
109{
110 Block_0:
111 stloc:ASN1(var_0_07, call:ASN1(AttributeTypeAndValue::GetASN1, ldloc:AttributeTypeAndValue(this), ldloc:uint8(encoding)))
112}
113
114 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
115 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
116 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
117 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
118 --- End of inner exception stack trace ---
119 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
120 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
121*/;
122 }
123
124 // Token: 0x06000185 RID: 389 RVA: 0x000076F8 File Offset: 0x000058F8
125 public byte[] GetBytes()
126 {
127 /*
128An exception occurred when decompiling this method (06000185)
129
130ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.X509.X520/AttributeTypeAndValue::GetBytes()
131
132 ---> System.Exception: Basic block has to end with unconditional control flow.
133{
134 Block_0:
135 stloc:uint8(var_0_06, ldfld:uint8(AttributeTypeAndValue::encoding, ldloc:AttributeTypeAndValue(this)))
136 stloc:ASN1(var_1_0E, call:ASN1(AttributeTypeAndValue::GetASN1, ldloc:AttributeTypeAndValue(this), ldloc:uint8(var_0_06)))
137}
138
139 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
140 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
141 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
142 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
143 --- End of inner exception stack trace ---
144 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
145 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
146*/;
147 }
148
149 // Token: 0x06000186 RID: 390 RVA: 0x00007714 File Offset: 0x00005914
150 private byte SelectBestEncoding()
151 {
152 /*
153An exception occurred when decompiling this method (06000186)
154
155ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Mono.Security.X509.X520/AttributeTypeAndValue::SelectBestEncoding()
156
157 ---> System.Exception: Basic block has to end with unconditional control flow.
158{
159 Block_0:
160 stloc:string(var_0_06, ldfld:string(AttributeTypeAndValue::attrValue, ldloc:AttributeTypeAndValue(this)))
161 stloc:int32(var_1_0D, ldfld:int32(string::_stringLength, ldloc:string(var_0_06)))
162 stloc:int64(var_2_0F, ldc.i4:int64(0))
163 stloc:char(var_3_17, callgetter:char(string::get_Chars, ldloc:string(var_0_06), ldloc:int64[exp:int32](var_2_0F)))
164 stloc:int32(var_4_1E, ldfld:int32(string::_stringLength, ldloc:string(var_0_06)))
165}
166
167 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
168 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
169 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
170 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
171 --- End of inner exception stack trace ---
172 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
173 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
174*/;
175 }
176
177 // Token: 0x040000B9 RID: 185
178 private string oid;
179
180 // Token: 0x040000BA RID: 186
181 private string attrValue;
182
183 // Token: 0x040000BB RID: 187
184 private int upperBound;
185
186 // Token: 0x040000BC RID: 188
187 private byte encoding;
188 }
189
190 // Token: 0x02000023 RID: 35
192 {
193 // Token: 0x06000187 RID: 391 RVA: 0x00007748 File Offset: 0x00005948
194 public Name()
195 {
196 this.oid = "2.5.4.41";
197 this.upperBound = 32768;
198 this.encoding = byte.MaxValue;
199 }
200 }
201
202 // Token: 0x02000024 RID: 36
204 {
205 // Token: 0x06000188 RID: 392 RVA: 0x0000777C File Offset: 0x0000597C
206 public CommonName()
207 {
208 this.oid = "2.5.4.3";
209 this.upperBound = 64;
210 this.encoding = byte.MaxValue;
211 }
212 }
213
214 // Token: 0x02000025 RID: 37
216 {
217 // Token: 0x06000189 RID: 393 RVA: 0x000077B0 File Offset: 0x000059B0
219 {
220 this.oid = "2.5.4.5";
221 this.upperBound = 64;
222 this.encoding = 19;
223 }
224 }
225
226 // Token: 0x02000026 RID: 38
228 {
229 // Token: 0x0600018A RID: 394 RVA: 0x000077E0 File Offset: 0x000059E0
231 {
232 this.oid = "2.5.4.7";
233 this.upperBound = 128;
234 this.encoding = byte.MaxValue;
235 }
236 }
237
238 // Token: 0x02000027 RID: 39
240 {
241 // Token: 0x0600018B RID: 395 RVA: 0x00007814 File Offset: 0x00005A14
243 {
244 this.oid = "2.5.4.8";
245 this.upperBound = 128;
246 this.encoding = byte.MaxValue;
247 }
248 }
249
250 // Token: 0x02000028 RID: 40
252 {
253 // Token: 0x0600018C RID: 396 RVA: 0x00007848 File Offset: 0x00005A48
255 {
256 this.oid = "2.5.4.10";
257 this.upperBound = 64;
258 this.encoding = byte.MaxValue;
259 }
260 }
261
262 // Token: 0x02000029 RID: 41
264 {
265 // Token: 0x0600018D RID: 397 RVA: 0x0000787C File Offset: 0x00005A7C
267 {
268 this.oid = "2.5.4.11";
269 this.upperBound = 64;
270 this.encoding = byte.MaxValue;
271 }
272 }
273
274 // Token: 0x0200002A RID: 42
276 {
277 // Token: 0x0600018E RID: 398 RVA: 0x000078B0 File Offset: 0x00005AB0
279 {
280 this.oid = "1.2.840.113549.1.9.1";
281 this.upperBound = 128;
282 this.encoding = 22;
283 }
284 }
285
286 // Token: 0x0200002B RID: 43
288 {
289 // Token: 0x0600018F RID: 399 RVA: 0x000078E4 File Offset: 0x00005AE4
291 {
292 this.oid = "0.9.2342.19200300.100.1.25";
293 this.upperBound = 1;
294 this.encoding = 22;
295 }
296 }
297
298 // Token: 0x0200002C RID: 44
300 {
301 // Token: 0x06000190 RID: 400 RVA: 0x00007914 File Offset: 0x00005B14
302 public UserId()
303 {
304 this.oid = "0.9.2342.19200300.100.1.1";
305 this.upperBound = 256;
306 this.encoding = byte.MaxValue;
307 }
308 }
309
310 // Token: 0x0200002D RID: 45
312 {
313 // Token: 0x06000191 RID: 401 RVA: 0x00007948 File Offset: 0x00005B48
314 public Oid(string oid)
315 {
316 this.oid = oid;
317 this.encoding = byte.MaxValue;
318 }
319 }
320
321 // Token: 0x0200002E RID: 46
323 {
324 // Token: 0x06000192 RID: 402 RVA: 0x00007970 File Offset: 0x00005B70
325 public Title()
326 {
327 this.oid = "2.5.4.12";
328 this.upperBound = 64;
329 this.encoding = byte.MaxValue;
330 }
331 }
332
333 // Token: 0x0200002F RID: 47
335 {
336 // Token: 0x06000193 RID: 403 RVA: 0x000079A4 File Offset: 0x00005BA4
337 public CountryName()
338 {
339 this.oid = "2.5.4.6";
340 this.upperBound = 2;
341 this.encoding = 19;
342 }
343 }
344
345 // Token: 0x02000030 RID: 48
347 {
348 // Token: 0x06000194 RID: 404 RVA: 0x000079D4 File Offset: 0x00005BD4
349 public DnQualifier()
350 {
351 this.oid = "2.5.4.46";
352 this.upperBound = 2;
353 this.encoding = 19;
354 }
355 }
356
357 // Token: 0x02000031 RID: 49
359 {
360 // Token: 0x06000195 RID: 405 RVA: 0x00007A04 File Offset: 0x00005C04
361 public Surname()
362 {
363 this.oid = "2.5.4.4";
364 this.upperBound = 32768;
365 this.encoding = byte.MaxValue;
366 }
367 }
368
369 // Token: 0x02000032 RID: 50
371 {
372 // Token: 0x06000196 RID: 406 RVA: 0x00007A38 File Offset: 0x00005C38
373 public GivenName()
374 {
375 this.oid = "2.5.4.42";
376 this.upperBound = 16;
377 this.encoding = byte.MaxValue;
378 }
379 }
380
381 // Token: 0x02000033 RID: 51
383 {
384 // Token: 0x06000197 RID: 407 RVA: 0x00007A6C File Offset: 0x00005C6C
385 public Initial()
386 {
387 this.oid = "2.5.4.43";
388 this.upperBound = 5;
389 this.encoding = byte.MaxValue;
390 }
391 }
392 }
393}
class f__AnonymousType0<< Count > j__TPar
AttributeTypeAndValue(string oid, int upperBound)
Definition X520.cs:17
AttributeTypeAndValue(string oid, int upperBound, byte encoding)
Definition X520.cs:25