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
PKCS7.cs
Go to the documentation of this file.
1using System;
5
6namespace Mono.Security
7{
8 // Token: 0x02000006 RID: 6
9 public sealed class PKCS7
10 {
11 // Token: 0x06000024 RID: 36 RVA: 0x00002050 File Offset: 0x00000250
12 public static ASN1 AlgorithmIdentifier(string oid)
13 {
14 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
15 }
16
17 // Token: 0x06000025 RID: 37 RVA: 0x00002050 File Offset: 0x00000250
18 public static ASN1 AlgorithmIdentifier(string oid, ASN1 parameters)
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22
23 // Token: 0x02000007 RID: 7
24 public class ContentInfo
25 {
26 // Token: 0x06000026 RID: 38 RVA: 0x0000250C File Offset: 0x0000070C
27 public ContentInfo()
28 {
29 }
30
31 // Token: 0x06000027 RID: 39 RVA: 0x00002520 File Offset: 0x00000720
32 public ContentInfo(string oid)
33 {
34 this.contentType = oid;
35 }
36
37 // Token: 0x06000028 RID: 40 RVA: 0x00002534 File Offset: 0x00000734
38 public ContentInfo(byte[] data)
39 {
40 }
41
42 // Token: 0x06000029 RID: 41 RVA: 0x00002544 File Offset: 0x00000744
44 {
45 byte nTag = asn1.m_nTag;
46 if (asn1.elist == null || asn1.elist != null)
47 {
48 }
49 long num = 0L;
50 byte nTag2 = asn1[(int)num].m_nTag;
51 long num2 = 0L;
52 string text = ASN1Convert.ToOid(asn1[(int)num2]);
54 if (asn1.elist != null)
55 {
56 byte nTag3 = asn1[1].m_nTag;
57 ASN1 asn2 = asn1[1];
59 }
60 }
61
62 // Token: 0x17000006 RID: 6
63 // (get) Token: 0x0600002A RID: 42 RVA: 0x000025C0 File Offset: 0x000007C0
64 public ASN1 ASN1
65 {
66 get
67 {
68 return this.GetASN1();
69 }
70 }
71
72 // Token: 0x17000007 RID: 7
73 // (get) Token: 0x0600002B RID: 43 RVA: 0x000025D4 File Offset: 0x000007D4
74 // (set) Token: 0x0600002C RID: 44 RVA: 0x000025E8 File Offset: 0x000007E8
75 public ASN1 Content
76 {
77 get
78 {
79 return this.content;
80 }
81 set
82 {
84 }
85 }
86
87 // Token: 0x17000008 RID: 8
88 // (get) Token: 0x0600002D RID: 45 RVA: 0x000025FC File Offset: 0x000007FC
89 // (set) Token: 0x0600002E RID: 46 RVA: 0x00002610 File Offset: 0x00000810
90 public string ContentType
91 {
92 get
93 {
94 return this.contentType;
95 }
96 set
97 {
99 }
100 }
101
102 // Token: 0x0600002F RID: 47 RVA: 0x00002624 File Offset: 0x00000824
103 internal ASN1 GetASN1()
104 {
105 /*
106An exception occurred when decompiling this method (0600002F)
107
108ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Security.ASN1 Mono.Security.PKCS7/ContentInfo::GetASN1()
109
110 ---> System.Exception: Basic block has to end with unconditional control flow.
111{
112 Block_1:
113 stloc:ASN1(var_3_24, ldfld:ASN1(ContentInfo::content, ldloc:ContentInfo(this)))
114}
115
116 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
117 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
118 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
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 88
120 --- End of inner exception stack trace ---
121 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
122 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
123*/;
124 }
125
126 // Token: 0x04000004 RID: 4
127 private string contentType;
128
129 // Token: 0x04000005 RID: 5
130 private ASN1 content;
131 }
132
133 // Token: 0x02000008 RID: 8
134 public class EncryptedData
135 {
136 // Token: 0x06000030 RID: 48 RVA: 0x00002658 File Offset: 0x00000858
138 {
139 }
140
141 // Token: 0x06000031 RID: 49 RVA: 0x0000266C File Offset: 0x0000086C
143 {
144 byte nTag = asn1.m_nTag;
145 if (asn1.elist != null)
146 {
147 long num = 0L;
148 byte nTag2 = asn1[(int)num].m_nTag;
149 long num2 = 0L;
150 byte[] value = asn1[(int)num2].Value;
152 byte nTag3 = asn1[1].m_nTag;
153 long num3 = 0L;
154 ASN1 asn2 = asn1[(int)num3];
155 byte nTag4 = asn2.m_nTag;
156 string text = ASN1Convert.ToOid(asn2);
157 ASN1 asn3 = asn1[1];
158 byte nTag5 = asn3.m_nTag;
159 string text2 = ASN1Convert.ToOid(asn3[1]);
160 ASN1 asn4 = asn3[1];
161 ASN1 asn5 = asn1[2];
162 byte nTag6 = asn5.m_nTag;
163 byte[] value2 = asn5.Value;
165 return;
166 }
167 }
168
169 // Token: 0x17000009 RID: 9
170 // (get) Token: 0x06000032 RID: 50 RVA: 0x00002738 File Offset: 0x00000938
171 public PKCS7.ContentInfo EncryptionAlgorithm
172 {
173 get
174 {
175 return this._encryptionAlgorithm;
176 }
177 }
178
179 // Token: 0x1700000A RID: 10
180 // (get) Token: 0x06000033 RID: 51 RVA: 0x0000274C File Offset: 0x0000094C
181 public byte[] EncryptedContent
182 {
183 get
184 {
185 object obj;
186 if (this._encrypted == null || obj == null || obj != null)
187 {
188 }
189 throw new InvalidCastException();
190 }
191 }
192
193 // Token: 0x04000006 RID: 6
194 private byte _version;
195
196 // Token: 0x04000007 RID: 7
198
199 // Token: 0x04000008 RID: 8
201
202 // Token: 0x04000009 RID: 9
203 private byte[] _encrypted;
204 }
205
206 // Token: 0x02000009 RID: 9
207 public class SignedData
208 {
209 // Token: 0x06000034 RID: 52 RVA: 0x0000276C File Offset: 0x0000096C
211 {
212 long num = 0L;
213 byte nTag = asn1[(int)num].m_nTag;
214 long num2 = 0L;
215 if (asn1[(int)num2].elist != null)
216 {
217 long num3 = 0L;
218 ASN1 asn2 = asn1[(int)num3];
219 long num4 = 0L;
220 byte nTag2 = asn2[(int)num4].m_nTag;
221 long num5 = 0L;
222 ASN1 asn3 = asn1[(int)num5];
223 long num6 = 0L;
224 byte[] value = asn3[(int)num6].Value;
225 long num7 = 0L;
227 ASN1 asn4 = asn1[(int)num7];
228 int num8 = 2;
229 ASN1 asn5 = asn4[num8];
230 long num9 = 0L;
231 ASN1 asn6 = asn1[(int)num9];
232 int num10 = 3;
233 byte nTag3 = asn6[num10].m_nTag;
234 long num11 = 0L;
235 long num12 = 0L;
236 ASN1 asn7 = asn1[(int)num12];
237 int num13 = 3;
238 if (asn7[num13].elist != null)
239 {
240 }
242 long num14 = 0L;
243 ASN1 asn8 = asn1[(int)num14];
244 int num15 = 3;
245 ASN1 asn9 = asn8[num15][(int)num11];
246 return;
247 }
248 }
249
250 // Token: 0x1700000B RID: 11
251 // (get) Token: 0x06000035 RID: 53 RVA: 0x00002924 File Offset: 0x00000B24
253 {
254 get
255 {
256 return this.certs;
257 }
258 }
259
260 // Token: 0x1700000C RID: 12
261 // (get) Token: 0x06000036 RID: 54 RVA: 0x00002938 File Offset: 0x00000B38
263 {
264 get
265 {
266 return this.contentInfo;
267 }
268 }
269
270 // Token: 0x1700000D RID: 13
271 // (set) Token: 0x06000037 RID: 55 RVA: 0x0000294C File Offset: 0x00000B4C
272 public string HashName
273 {
274 set
275 {
279 }
280 }
281
282 // Token: 0x1700000E RID: 14
283 // (get) Token: 0x06000038 RID: 56 RVA: 0x00002970 File Offset: 0x00000B70
285 {
286 get
287 {
288 return this.signerInfo;
289 }
290 }
291
292 // Token: 0x06000039 RID: 57 RVA: 0x00002984 File Offset: 0x00000B84
293 internal string OidToName(string oid)
294 {
295 bool flag = oid == "1.3.14.3.2.26";
296 bool flag2 = oid == "1.2.840.113549.2.2";
297 bool flag3 = oid == "1.2.840.113549.2.5";
298 bool flag4 = oid == "2.16.840.1.101.3.4.1";
299 bool flag5 = oid == "2.16.840.1.101.3.4.2";
300 return "SHA384";
301 }
302
303 // Token: 0x0400000A RID: 10
304 private byte version;
305
306 // Token: 0x0400000B RID: 11
307 private string hashAlgorithm;
308
309 // Token: 0x0400000C RID: 12
311
312 // Token: 0x0400000D RID: 13
314
315 // Token: 0x0400000E RID: 14
317
318 // Token: 0x0400000F RID: 15
320
321 // Token: 0x04000010 RID: 16
322 private bool mda;
323 }
324
325 // Token: 0x0200000A RID: 10
326 public class SignerInfo
327 {
328 // Token: 0x0600003A RID: 58 RVA: 0x000029E0 File Offset: 0x00000BE0
329 public SignerInfo()
330 {
331 this.version = 1;
332 }
333
334 // Token: 0x0600003B RID: 59 RVA: 0x000029FC File Offset: 0x00000BFC
336 {
337 long num = 0L;
338 byte nTag = asn1[(int)num].m_nTag;
339 long num2 = 0L;
340 if (asn1[(int)num2].elist != null)
341 {
342 long num3 = 0L;
343 ASN1 asn2 = asn1[(int)num3];
344 long num4 = 0L;
345 byte nTag2 = asn2[(int)num4].m_nTag;
346 long num5 = 0L;
347 ASN1 asn3 = asn1[(int)num5];
348 long num6 = 0L;
349 byte[] value = asn3[(int)num6].Value;
350 long num7 = 0L;
352 ASN1 asn4 = asn1[(int)num7];
353 int num8 = 1;
354 ASN1 asn5 = asn4[num8];
355 byte nTag3 = asn5.m_nTag;
356 byte b = this.version;
357 byte[] value2 = asn5.Value;
359 return;
360 }
361 }
362
363 // Token: 0x1700000F RID: 15
364 // (get) Token: 0x0600003C RID: 60 RVA: 0x00002BCC File Offset: 0x00000DCC
365 public string IssuerName
366 {
367 get
368 {
369 return this.issuer;
370 }
371 }
372
373 // Token: 0x17000010 RID: 16
374 // (get) Token: 0x0600003D RID: 61 RVA: 0x00002BE0 File Offset: 0x00000DE0
375 public byte[] SerialNumber
376 {
377 get
378 {
379 object obj;
380 if (this.serial == null || obj == null || obj != null)
381 {
382 }
383 throw new InvalidCastException();
384 }
385 }
386
387 // Token: 0x17000011 RID: 17
388 // (get) Token: 0x0600003E RID: 62 RVA: 0x00002C00 File Offset: 0x00000E00
390 {
391 get
392 {
393 return this.authenticatedAttributes;
394 }
395 }
396
397 // Token: 0x17000012 RID: 18
398 // (get) Token: 0x0600003F RID: 63 RVA: 0x00002C14 File Offset: 0x00000E14
399 // (set) Token: 0x06000040 RID: 64 RVA: 0x00002C28 File Offset: 0x00000E28
400 public string HashName
401 {
402 get
403 {
404 return this.hashAlgorithm;
405 }
406 set
407 {
409 }
410 }
411
412 // Token: 0x17000013 RID: 19
413 // (get) Token: 0x06000041 RID: 65 RVA: 0x00002C3C File Offset: 0x00000E3C
414 public byte[] Signature
415 {
416 get
417 {
418 object obj;
419 if (this.signature == null || obj == null || obj != null)
420 {
421 }
422 throw new InvalidCastException();
423 }
424 }
425
426 // Token: 0x17000014 RID: 20
427 // (get) Token: 0x06000042 RID: 66 RVA: 0x00002C5C File Offset: 0x00000E5C
429 {
430 get
431 {
432 return this.unauthenticatedAttributes;
433 }
434 }
435
436 // Token: 0x17000015 RID: 21
437 // (get) Token: 0x06000043 RID: 67 RVA: 0x00002C70 File Offset: 0x00000E70
438 public byte Version
439 {
440 get
441 {
442 return this.version;
443 }
444 }
445
446 // Token: 0x04000011 RID: 17
447 private byte version;
448
449 // Token: 0x04000012 RID: 18
450 private string hashAlgorithm;
451
452 // Token: 0x04000013 RID: 19
454
455 // Token: 0x04000014 RID: 20
457
458 // Token: 0x04000015 RID: 21
459 private byte[] signature;
460
461 // Token: 0x04000016 RID: 22
462 private string issuer;
463
464 // Token: 0x04000017 RID: 23
465 private byte[] serial;
466
467 // Token: 0x04000018 RID: 24
468 private byte[] ski;
469 }
470 }
471}
class f__AnonymousType0<< Count > j__TPar
static string ToOid(ASN1 asn1)
byte[] Value
Definition ASN1.cs:89
PKCS7.ContentInfo _encryptionAlgorithm
Definition PKCS7.cs:200
PKCS7.ContentInfo _content
Definition PKCS7.cs:197
PKCS7.ContentInfo contentInfo
Definition PKCS7.cs:310
X509CertificateCollection Certificates
Definition PKCS7.cs:253
X509CertificateCollection certs
Definition PKCS7.cs:313
string OidToName(string oid)
Definition PKCS7.cs:293
PKCS7.SignerInfo signerInfo
Definition PKCS7.cs:319
ArrayList unauthenticatedAttributes
Definition PKCS7.cs:456
ArrayList authenticatedAttributes
Definition PKCS7.cs:453
ArrayList AuthenticatedAttributes
Definition PKCS7.cs:390
ArrayList UnauthenticatedAttributes
Definition PKCS7.cs:429
static ASN1 AlgorithmIdentifier(string oid)
Definition PKCS7.cs:12
static ASN1 AlgorithmIdentifier(string oid, ASN1 parameters)
Definition PKCS7.cs:18