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
AsnEncodedData.cs
Go to the documentation of this file.
1using System;
2using System.Text;
3using Mono.Security;
5
7{
8 // Token: 0x020000F5 RID: 245
9 public class AsnEncodedData
10 {
11 // Token: 0x06000589 RID: 1417 RVA: 0x00015B58 File Offset: 0x00013D58
12 protected AsnEncodedData()
13 {
14 }
15
16 // Token: 0x0600058A RID: 1418 RVA: 0x00015B6C File Offset: 0x00013D6C
17 public AsnEncodedData(string oid, byte[] rawData)
18 {
20 }
21
22 // Token: 0x0600058B RID: 1419 RVA: 0x00015B88 File Offset: 0x00013D88
23 public AsnEncodedData(Oid oid, byte[] rawData)
24 {
25 this.Oid = oid;
27 }
28
29 // Token: 0x0600058C RID: 1420 RVA: 0x00015BAC File Offset: 0x00013DAC
31 {
32 do
33 {
34 base..ctor();
35 }
36 while (asnEncodedData == null);
37 if (asnEncodedData._oid != null)
38 {
39 }
40 byte[] raw = asnEncodedData._raw;
41 this.RawData = raw;
42 }
43
44 // Token: 0x17000110 RID: 272
45 // (get) Token: 0x0600058D RID: 1421 RVA: 0x00015BD8 File Offset: 0x00013DD8
46 // (set) Token: 0x0600058E RID: 1422 RVA: 0x00015BEC File Offset: 0x00013DEC
47 public Oid Oid
48 {
49 get
50 {
51 return this._oid;
52 }
53 set
54 {
55 if (value != null)
56 {
57 return;
58 }
59 }
60 }
61
62 // Token: 0x17000111 RID: 273
63 // (get) Token: 0x0600058F RID: 1423 RVA: 0x00015C00 File Offset: 0x00013E00
64 // (set) Token: 0x06000590 RID: 1424 RVA: 0x00015C14 File Offset: 0x00013E14
65 public byte[] RawData
66 {
67 get
68 {
69 return this._raw;
70 }
71 set
72 {
73 if (value != null)
74 {
75 object obj;
76 if (obj != null)
77 {
78 if (obj == null)
79 {
80 goto IL_001A;
81 }
82 this._raw = obj;
83 if (obj == null)
84 {
85 throw new InvalidCastException();
86 }
87 }
88 return;
89 }
90 IL_001A:
91 throw new InvalidCastException();
92 }
93 }
94
95 // Token: 0x06000591 RID: 1425 RVA: 0x00015C40 File Offset: 0x00013E40
97 {
98 while (asnEncodedData == null)
99 {
100 }
101 if (asnEncodedData._oid != null)
102 {
103 return;
104 }
105 byte[] raw = asnEncodedData._raw;
106 this.RawData = raw;
107 }
108
109 // Token: 0x06000592 RID: 1426 RVA: 0x00015C68 File Offset: 0x00013E68
110 public virtual string Format(bool multiLine)
111 {
112 if (this._raw == null || this._oid != null)
113 {
114 }
115 long num = 0L;
116 return this.Default(num != 0L);
117 }
118
119 // Token: 0x06000593 RID: 1427 RVA: 0x00015C90 File Offset: 0x00013E90
120 internal virtual string ToString(bool multiLine)
121 {
122 string value = this._oid._value;
123 bool flag = value == "2.5.29.19";
124 string text;
125 return text;
126 }
127
128 // Token: 0x06000594 RID: 1428 RVA: 0x00015D1C File Offset: 0x00013F1C
129 internal string Default(bool multiLine)
130 {
131 /*
132An exception occurred when decompiling this method (06000594)
133
134ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Security.Cryptography.AsnEncodedData::Default(System.Boolean)
135
136 ---> System.Exception: Basic block has to end with unconditional control flow.
137{
138 Block_0:
139 stloc:uint8[](var_0_06, ldfld:uint8[](AsnEncodedData::_raw, ldloc:AsnEncodedData(this)))
140 stloc:uint8[](var_3_0D, ldfld:uint8[](AsnEncodedData::_raw, ldloc:AsnEncodedData(this)))
141 stloc:uint8[](var_5_14, ldfld:uint8[](AsnEncodedData::_raw, ldloc:AsnEncodedData(this)))
142}
143
144 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
145 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
146 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
147 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
148 --- End of inner exception stack trace ---
149 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
150 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
151*/;
152 }
153
154 // Token: 0x06000595 RID: 1429 RVA: 0x00015D40 File Offset: 0x00013F40
155 internal string BasicConstraintsExtension(bool multiLine)
156 {
157 }
158
159 // Token: 0x06000596 RID: 1430 RVA: 0x00015D50 File Offset: 0x00013F50
160 internal string EnhancedKeyUsageExtension(bool multiLine)
161 {
162 }
163
164 // Token: 0x06000597 RID: 1431 RVA: 0x00015D60 File Offset: 0x00013F60
165 internal string KeyUsageExtension(bool multiLine)
166 {
167 }
168
169 // Token: 0x06000598 RID: 1432 RVA: 0x00015D70 File Offset: 0x00013F70
170 internal string SubjectKeyIdentifierExtension(bool multiLine)
171 {
172 }
173
174 // Token: 0x06000599 RID: 1433 RVA: 0x00015D80 File Offset: 0x00013F80
175 internal string SubjectAltName(bool multiLine)
176 {
177 byte[] raw = this._raw;
178 ASN1 asn;
179 byte nTag = asn.m_nTag;
181 byte[] value = asn.Value;
183 byte[] value2 = asn.Value;
184 string text = CryptoConvert.ToHex(asn.Value);
185 string newLine = Environment.NewLine;
186 return "Information Not Available";
187 }
188
189 // Token: 0x0600059A RID: 1434 RVA: 0x00015DE8 File Offset: 0x00013FE8
190 internal string NetscapeCertType(bool multiLine)
191 {
192 byte[] raw = this._raw;
193 return "Information Not Available";
194 }
195
196 // Token: 0x04000472 RID: 1138
197 internal Oid _oid;
198
199 // Token: 0x04000473 RID: 1139
200 internal byte[] _raw;
201 }
202}
class f__AnonymousType0<< Count > j__TPar
static string ToHex(byte[] input)
static string NewLine
virtual string Format(bool multiLine)
AsnEncodedData(AsnEncodedData asnEncodedData)
virtual string ToString(bool multiLine)
AsnEncodedData(string oid, byte[] rawData)
string SubjectKeyIdentifierExtension(bool multiLine)
virtual void CopyFrom(AsnEncodedData asnEncodedData)
static Encoding ASCII
Definition Encoding.cs:348