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
X509Certificate.cs
Go to the documentation of this file.
1using System;
4using System.Text;
6
7namespace Mono.Security.X509
8{
9 // Token: 0x02000015 RID: 21
11 {
12 // Token: 0x060000C5 RID: 197 RVA: 0x0000538C File Offset: 0x0000358C
13 private void Parse(byte[] data)
14 {
15 ASN1 asn;
16 byte nTag = asn.m_nTag;
17 ASN1 asn2 = this.decoder;
18 long num = 0L;
19 ASN1 asn3 = asn2[(int)num];
20 ASN1 asn4 = this.decoder;
21 long num2 = 0L;
22 ASN1 asn5 = asn4[(int)num2];
23 long num3 = 0L;
24 ASN1 asn6 = asn5[(int)num3];
25 int num4 = 1;
27 byte nTag2 = asn6.m_nTag;
28 int num5;
29 if (asn6.elist != null)
30 {
31 num5 = this.version;
32 long num6 = 0L;
33 byte[] value = asn6[(int)num6].Value;
34 return;
35 }
36 long num7 = 0L;
37 ASN1 asn7 = this.decoder;
38 long num8 = 0L;
39 ASN1 asn8 = asn7[(int)num8][(int)num7];
40 byte nTag3 = asn8.m_nTag;
41 byte[] value2 = asn8.Value;
43 int num9 = 48;
44 ASN1 asn9 = asn3.Element(num5, (byte)num9);
46 string text = X501.ToString(asn9);
48 int num10 = 48;
49 ASN1 asn10 = asn3.Element(num5, (byte)num10);
50 long num11 = 0L;
51 DateTime dateTime = ASN1Convert.ToDateTime(asn10[(int)num11]);
52 this.m_from = dateTime;
53 int num12 = 1;
56 int num13 = 48;
57 ASN1 asn11 = asn3.Element(num12, (byte)num13);
59 string text2 = X501.ToString(asn11);
60 this.m_subject = text2;
61 int num14 = 48;
62 ASN1 asn12 = asn3.Element(num12, (byte)num14);
63 int num15 = 48;
64 long num16 = 0L;
65 ASN1 asn13 = asn12.Element((int)num16, (byte)num15);
66 int num17 = 6;
67 long num18 = 0L;
68 string text3 = ASN1Convert.ToOid(asn13.Element((int)num18, (byte)num17));
70 int num19 = 1;
72 if (asn13.elist != null)
73 {
74 return;
75 }
76 long num20;
78 int num21 = 1;
79 int num22 = 3;
81 if (asn15.m_aValue != null)
82 {
83 }
84 byte[] value3 = asn15.Value;
85 byte[] publickey = this.m_publickey;
86 ASN1 asn16 = this.decoder;
87 int num23 = 2;
88 byte[] value4 = asn16[num23].Value;
89 ASN1 asn17 = this.decoder;
90 int num24 = 1;
92 int num25 = 6;
93 long num26 = 0L;
94 string text4 = ASN1Convert.ToOid(asn18.Element((int)num26, (byte)num25));
96 int num27 = 1;
98 if (asn19 != null)
99 {
100 }
102 int num28 = 129;
103 ASN1 asn20 = asn3.Element((int)num7, (byte)num28);
104 if (asn20 != null)
105 {
106 byte[] value5 = asn20.Value;
108 }
109 int num29 = 130;
110 ASN1 asn21 = asn3.Element((int)num7, (byte)num29);
111 if (asn21 != null)
112 {
113 byte[] value6 = asn21.Value;
115 }
116 int num30 = 163;
117 ASN1 asn22 = asn3.Element((int)num7, (byte)num30);
118 if (asn22 != null && asn22.elist != null)
119 {
120 long num31 = 0L;
121 ASN1 asn23 = asn22[(int)num31];
122 return;
123 }
124 object obj;
125 if (obj != null)
126 {
127 if (obj == null)
128 {
129 throw new InvalidCastException();
130 }
132 if (obj == null)
133 {
134 throw new InvalidCastException();
135 }
136 }
137 }
138
139 // Token: 0x060000C6 RID: 198 RVA: 0x000056CC File Offset: 0x000038CC
140 public X509Certificate(byte[] data)
141 {
142 int num = 1;
143 base..ctor();
144 if (data != null)
145 {
146 byte[] array;
147 if (num != 0)
148 {
149 array = X509Certificate.PEM("CERTIFICATE", data);
150 }
151 this.Parse(array);
152 return;
153 }
154 }
155
156 // Token: 0x060000C7 RID: 199 RVA: 0x00005700 File Offset: 0x00003900
157 private byte[] GetUnsignedBigInteger(byte[] integer)
158 {
159 /*
160An exception occurred when decompiling this method (060000C7)
161
162ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.X509.X509Certificate::GetUnsignedBigInteger(System.Byte[])
163
164 ---> System.Exception: Basic block has to end with unconditional control flow.
165{
166 IL_0000:
167 brtrue(IL_0000, ldc.i4:bool(1))
168}
169
170 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
171 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
172 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
173 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
174 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
175 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
176 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
177 --- End of inner exception stack trace ---
178 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
179 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
180*/;
181 }
182
183 // Token: 0x17000034 RID: 52
184 // (get) Token: 0x060000C8 RID: 200 RVA: 0x00005710 File Offset: 0x00003910
185 // (set) Token: 0x060000C9 RID: 201 RVA: 0x00005794 File Offset: 0x00003994
186 public DSA DSA
187 {
188 get
189 {
190 while (this.m_keyalgoparams == null)
191 {
192 }
193 if (this._dsa == null)
194 {
195 bool flag = this.m_keyalgo == "1.2.840.10040.4.1";
196 byte[] publickey = this.m_publickey;
197 byte[] keyalgoparams = this.m_keyalgoparams;
198 ASN1 asn;
199 byte nTag = asn.m_nTag;
200 ASN1 asn2;
201 byte nTag2 = asn2.m_nTag;
202 ASN1 asn3;
203 byte nTag3 = asn3.m_nTag;
204 ASN1 asn4;
205 byte[] value = asn4.Value;
206 ASN1 asn5;
207 byte[] value2 = asn5.Value;
208 ASN1 asn6;
209 byte[] value3 = asn6.Value;
210 }
211 return this._dsa;
212 }
213 set
214 {
216 if (value != null)
217 {
218 }
219 }
220 }
221
222 // Token: 0x17000035 RID: 53
223 // (get) Token: 0x060000CA RID: 202 RVA: 0x000057AC File Offset: 0x000039AC
225 {
226 get
227 {
228 return this.extensions;
229 }
230 }
231
232 // Token: 0x17000036 RID: 54
233 // (get) Token: 0x060000CB RID: 203 RVA: 0x000057C0 File Offset: 0x000039C0
234 public byte[] Hash
235 {
236 get
237 {
238 string text;
239 for (;;)
240 {
241 object obj;
242 if (this.certhash != null)
243 {
244 if (obj != null && obj == null)
245 {
246 break;
247 }
248 }
249 else if (obj != null && text != null)
250 {
251 goto Block_4;
252 }
253 }
254 throw new InvalidCastException();
255 Block_4:
256 HashAlgorithm hashAlgorithm = PKCS1.CreateFromName(text);
257 ASN1 asn;
258 byte[] aValue = asn.m_aValue;
259 long num = 0L;
260 if (hashAlgorithm != null)
261 {
262 long value = 0.m_value;
263 }
264 if (num == 0L)
265 {
266 throw new InvalidCastException();
267 }
268 throw new OutOfMemoryException();
269 }
270 }
271
272 // Token: 0x17000037 RID: 55
273 // (get) Token: 0x060000CC RID: 204 RVA: 0x00005834 File Offset: 0x00003A34
274 public virtual string IssuerName
275 {
276 get
277 {
278 return this.m_issuername;
279 }
280 }
281
282 // Token: 0x17000038 RID: 56
283 // (get) Token: 0x060000CD RID: 205 RVA: 0x00005848 File Offset: 0x00003A48
284 public virtual string KeyAlgorithm
285 {
286 get
287 {
288 return this.m_keyalgo;
289 }
290 }
291
292 // Token: 0x17000039 RID: 57
293 // (get) Token: 0x060000CE RID: 206 RVA: 0x0000585C File Offset: 0x00003A5C
294 // (set) Token: 0x060000CF RID: 207 RVA: 0x0000587C File Offset: 0x00003A7C
295 public virtual byte[] KeyAlgorithmParameters
296 {
297 get
298 {
299 object obj;
300 if (this.m_keyalgoparams == null || obj == null || obj != null)
301 {
302 }
303 throw new InvalidCastException();
304 }
305 set
306 {
308 }
309 }
310
311 // Token: 0x1700003A RID: 58
312 // (get) Token: 0x060000D0 RID: 208 RVA: 0x00005890 File Offset: 0x00003A90
313 public virtual byte[] PublicKey
314 {
315 get
316 {
317 object obj;
318 if (this.m_publickey == null || obj == null || obj != null)
319 {
320 }
321 throw new InvalidCastException();
322 }
323 }
324
325 // Token: 0x1700003B RID: 59
326 // (get) Token: 0x060000D1 RID: 209 RVA: 0x000058B0 File Offset: 0x00003AB0
327 // (set) Token: 0x060000D2 RID: 210 RVA: 0x00005914 File Offset: 0x00003B14
328 public virtual RSA RSA
329 {
330 get
331 {
332 while (this._rsa == null)
333 {
334 bool flag = this.m_keyalgo == "1.2.840.113549.1.1.1";
335 byte[] publickey = this.m_publickey;
336 ASN1 asn;
337 if (asn != null)
338 {
339 byte nTag = asn.m_nTag;
340 ASN1 asn2;
341 byte nTag2 = asn2.m_nTag;
342 byte[] value = asn.Value;
343 byte[] value2 = asn2.Value;
344 this._rsa = 0;
345 break;
346 }
347 }
348 return this._rsa;
349 }
350 set
351 {
352 if (value != null)
353 {
354 }
356 }
357 }
358
359 // Token: 0x1700003C RID: 60
360 // (get) Token: 0x060000D3 RID: 211 RVA: 0x0000592C File Offset: 0x00003B2C
361 public virtual byte[] RawData
362 {
363 get
364 {
365 object obj;
366 if (this.m_encodedcert == null || obj == null || obj != null)
367 {
368 }
369 throw new InvalidCastException();
370 }
371 }
372
373 // Token: 0x1700003D RID: 61
374 // (get) Token: 0x060000D4 RID: 212 RVA: 0x0000594C File Offset: 0x00003B4C
375 public virtual byte[] SerialNumber
376 {
377 get
378 {
379 object obj;
380 if (this.serialnumber == null || obj == null || obj != null)
381 {
382 }
383 throw new InvalidCastException();
384 }
385 }
386
387 // Token: 0x1700003E RID: 62
388 // (get) Token: 0x060000D5 RID: 213 RVA: 0x0000596C File Offset: 0x00003B6C
389 public virtual byte[] Signature
390 {
391 get
392 {
393 if (this.signature != null)
394 {
395 string signaturealgo = this.m_signaturealgo;
396 uint num = <PrivateImplementationDetails>.ComputeStringHash(signaturealgo);
397 bool flag = signaturealgo == "1.2.840.10040.4.3";
398 byte[] array = this.signature;
399 ASN1 asn;
400 byte[] value = asn.Value;
401 ASN1 asn2;
402 byte[] value2 = asn2.Value;
403 int num2 = 40;
404 int num3 = Math.Max(0, num2);
405 int num4 = Math.Max(0, num2);
406 int num5 = Math.Max(0, num3);
407 int num6 = Math.Max(20, num3);
408 return value2;
409 }
410 }
411 }
412
413 // Token: 0x1700003F RID: 63
414 // (get) Token: 0x060000D6 RID: 214 RVA: 0x00005A60 File Offset: 0x00003C60
415 public virtual string SignatureAlgorithm
416 {
417 get
418 {
419 return this.m_signaturealgo;
420 }
421 }
422
423 // Token: 0x17000040 RID: 64
424 // (get) Token: 0x060000D7 RID: 215 RVA: 0x00005A74 File Offset: 0x00003C74
425 public virtual byte[] SignatureAlgorithmParameters
426 {
427 get
428 {
429 object obj;
430 if (this.m_signaturealgoparams == null || obj == null || obj != null)
431 {
432 }
433 throw new InvalidCastException();
434 }
435 }
436
437 // Token: 0x17000041 RID: 65
438 // (get) Token: 0x060000D8 RID: 216 RVA: 0x00005A94 File Offset: 0x00003C94
439 public virtual string SubjectName
440 {
441 get
442 {
443 return this.m_subject;
444 }
445 }
446
447 // Token: 0x17000042 RID: 66
448 // (get) Token: 0x060000D9 RID: 217 RVA: 0x00005AA8 File Offset: 0x00003CA8
449 public virtual DateTime ValidFrom
450 {
451 get
452 {
453 DateTime from = this.m_from;
454 DateTime dateTime;
455 return dateTime;
456 }
457 }
458
459 // Token: 0x17000043 RID: 67
460 // (get) Token: 0x060000DA RID: 218 RVA: 0x00005AC0 File Offset: 0x00003CC0
461 public virtual DateTime ValidUntil
462 {
463 get
464 {
465 DateTime until = this.m_until;
466 DateTime dateTime;
467 return dateTime;
468 }
469 }
470
471 // Token: 0x17000044 RID: 68
472 // (get) Token: 0x060000DB RID: 219 RVA: 0x00005AD8 File Offset: 0x00003CD8
473 public int Version
474 {
475 get
476 {
477 return this.version;
478 }
479 }
480
481 // Token: 0x17000045 RID: 69
482 // (get) Token: 0x060000DC RID: 220 RVA: 0x00005AEC File Offset: 0x00003CEC
483 public bool IsCurrent
484 {
485 get
486 {
487 if (!true)
488 {
489 }
491 return this.WasCurrent(utcNow);
492 }
493 }
494
495 // Token: 0x060000DD RID: 221 RVA: 0x00005B0C File Offset: 0x00003D0C
497 {
498 bool flag;
499 return flag;
500 }
501
502 // Token: 0x17000046 RID: 70
503 // (get) Token: 0x060000DE RID: 222 RVA: 0x00005B1C File Offset: 0x00003D1C
505 {
506 get
507 {
508 object obj;
509 if (this.issuerUniqueID == null || obj == null || obj != null)
510 {
511 }
512 throw new InvalidCastException();
513 }
514 }
515
516 // Token: 0x17000047 RID: 71
517 // (get) Token: 0x060000DF RID: 223 RVA: 0x00005B3C File Offset: 0x00003D3C
519 {
520 get
521 {
522 object obj;
523 if (this.subjectUniqueID == null || obj == null || obj != null)
524 {
525 }
526 throw new InvalidCastException();
527 }
528 }
529
530 // Token: 0x060000E0 RID: 224 RVA: 0x00005B5C File Offset: 0x00003D5C
531 internal bool VerifySignature(DSA dsa)
532 {
533 /*
534An exception occurred when decompiling this method (060000E0)
535
536ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.X509.X509Certificate::VerifySignature(System.Security.Cryptography.DSA)
537
538 ---> System.Exception: Basic block has to end with unconditional control flow.
539{
540 Block_0:
541 stloc:uint8[](var_0_06, callgetter:uint8[](X509Certificate::get_Hash, ldloc:X509Certificate(this)))
542}
543
544 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
545 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
546 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
547 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
548 --- End of inner exception stack trace ---
549 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
550 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
551*/;
552 }
553
554 // Token: 0x060000E1 RID: 225 RVA: 0x00005B70 File Offset: 0x00003D70
555 internal bool VerifySignature(RSA rsa)
556 {
557 /*
558An exception occurred when decompiling this method (060000E1)
559
560ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.X509.X509Certificate::VerifySignature(System.Security.Cryptography.RSA)
561
562 ---> System.Exception: Basic block has to end with unconditional control flow.
563{
564 Block_0:
565 stloc:bool(var_0_10, call:bool(string::op_Equality, ldfld:string(X509Certificate::m_signaturealgo, ldloc:X509Certificate(this)), ldstr:string("1.2.840.10040.4.3")))
566 stloc:string(var_2_1F, call:string(PKCS1::HashNameFromOid, ldfld:string(X509Certificate::m_signaturealgo, ldloc:X509Certificate(this)), ldc.i4:bool(1)))
567 stloc:uint8[](var_3_26, callgetter:uint8[](X509Certificate::get_Hash, ldloc:X509Certificate(this)))
568}
569
570 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
571 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
572 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
573 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
574 --- End of inner exception stack trace ---
575 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
576 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
577*/;
578 }
579
580 // Token: 0x060000E2 RID: 226 RVA: 0x00005BA4 File Offset: 0x00003DA4
582 {
583 while (aa == null)
584 {
585 }
586 bool flag;
587 return flag;
588 }
589
590 // Token: 0x060000E3 RID: 227 RVA: 0x00005BB8 File Offset: 0x00003DB8
591 public bool CheckSignature(byte[] hash, string hashAlgorithm, byte[] signature)
592 {
593 if (this != null)
594 {
595 }
596 bool flag;
597 return flag;
598 }
599
600 // Token: 0x17000048 RID: 72
601 // (get) Token: 0x060000E4 RID: 228 RVA: 0x00005BD0 File Offset: 0x00003DD0
602 public bool IsSelfSigned
603 {
604 get
605 {
606 string issuername = this.m_issuername;
607 string text = this.m_subject;
608 bool flag = issuername != text;
609 if (this != null)
610 {
611 bool flag2;
612 return flag2;
613 }
614 bool flag3;
615 if (this.DSA != null)
616 {
617 DSA dsa = this.DSA;
618 flag3 = this.VerifySignature(dsa);
619 }
620 return flag3;
621 }
622 }
623
624 // Token: 0x060000E5 RID: 229 RVA: 0x00005C2C File Offset: 0x00003E2C
626 {
627 return this.issuer;
628 }
629
630 // Token: 0x060000E6 RID: 230 RVA: 0x00005C40 File Offset: 0x00003E40
632 {
633 return this.subject;
634 }
635
636 // Token: 0x060000E7 RID: 231 RVA: 0x00005C54 File Offset: 0x00003E54
638 {
639 if (!true)
640 {
641 }
642 Type type;
643 object value = info.GetValue("raw", type);
644 if (value != null && value == null)
645 {
646 throw new InvalidCastException();
647 }
648 }
649
650 // Token: 0x060000E8 RID: 232 RVA: 0x00005C84 File Offset: 0x00003E84
652 {
653 byte[] encodedcert = this.m_encodedcert;
654 info.AddValue("raw", encodedcert);
655 }
656
657 // Token: 0x060000E9 RID: 233 RVA: 0x00005CA4 File Offset: 0x00003EA4
658 private static byte[] PEM(string type, byte[] data)
659 {
661 string text = string.Format("-----BEGIN {0}-----", type);
662 string text2 = string.Format("-----END {0}-----", type);
663 int stringLength = text._stringLength;
664 string text3;
666 }
667
668 // Token: 0x060000EA RID: 234 RVA: 0x00005CE0 File Offset: 0x00003EE0
669 // Note: this type is marked as 'beforefieldinit'.
671 {
672 }
673
674 // Token: 0x04000069 RID: 105
675 private ASN1 decoder;
676
677 // Token: 0x0400006A RID: 106
678 private byte[] m_encodedcert;
679
680 // Token: 0x0400006B RID: 107
682
683 // Token: 0x0400006C RID: 108
685
686 // Token: 0x0400006D RID: 109
687 private ASN1 issuer;
688
689 // Token: 0x0400006E RID: 110
690 private string m_issuername;
691
692 // Token: 0x0400006F RID: 111
693 private string m_keyalgo;
694
695 // Token: 0x04000070 RID: 112
696 private byte[] m_keyalgoparams;
697
698 // Token: 0x04000071 RID: 113
699 private ASN1 subject;
700
701 // Token: 0x04000072 RID: 114
702 private string m_subject;
703
704 // Token: 0x04000073 RID: 115
705 private byte[] m_publickey;
706
707 // Token: 0x04000074 RID: 116
708 private byte[] signature;
709
710 // Token: 0x04000075 RID: 117
711 private string m_signaturealgo;
712
713 // Token: 0x04000076 RID: 118
714 private byte[] m_signaturealgoparams;
715
716 // Token: 0x04000077 RID: 119
717 private byte[] certhash;
718
719 // Token: 0x04000078 RID: 120
720 private RSA _rsa;
721
722 // Token: 0x04000079 RID: 121
723 private DSA _dsa;
724
725 // Token: 0x0400007A RID: 122
726 internal const string OID_DSA = "1.2.840.10040.4.1";
727
728 // Token: 0x0400007B RID: 123
729 internal const string OID_RSA = "1.2.840.113549.1.1.1";
730
731 // Token: 0x0400007C RID: 124
732 internal const string OID_ECC = "1.2.840.10045.2.1";
733
734 // Token: 0x0400007D RID: 125
735 private int version;
736
737 // Token: 0x0400007E RID: 126
738 private byte[] serialnumber;
739
740 // Token: 0x0400007F RID: 127
741 private byte[] issuerUniqueID;
742
743 // Token: 0x04000080 RID: 128
744 private byte[] subjectUniqueID;
745
746 // Token: 0x04000081 RID: 129
748
749 // Token: 0x04000082 RID: 130
750 private static string encoding_error;
751 }
752}
class f__AnonymousType0<< Count > j__TPar
static DateTime ToDateTime(ASN1 time)
static string ToOid(ASN1 asn1)
byte[] Value
Definition ASN1.cs:89
byte[] m_aValue
Definition ASN1.cs:268
ASN1 Element(int index, byte anTag)
Definition ASN1.cs:220
static HashAlgorithm CreateFromName(string name)
Definition PKCS1.cs:124
static string ToString(ASN1 seq)
Definition X501.cs:15
bool VerifySignature(AsymmetricAlgorithm aa)
bool CheckSignature(byte[] hash, string hashAlgorithm, byte[] signature)
byte[] GetUnsignedBigInteger(byte[] integer)
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
X509Certificate(SerializationInfo info, StreamingContext context)
static byte[] PEM(string type, byte[] data)
X509ExtensionCollection extensions
static byte[] FromBase64String(string s)
Definition Convert.cs:2736
static byte Max(byte val1, byte val2)
Definition Math.cs:111
void AddValue(string name, object value, Type type)
static Encoding ASCII
Definition Encoding.cs:348
static DateTime UtcNow
Definition DateTime.cs:1318