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
CertificateData.cs
Go to the documentation of this file.
1using System;
9
11{
12 // Token: 0x02000072 RID: 114
13 internal struct CertificateData
14 {
15 // Token: 0x060001AA RID: 426 RVA: 0x00002050 File Offset: 0x00000250
16 internal CertificateData(byte[] rawData)
17 {
18 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
20
21 // Token: 0x060001AB RID: 427 RVA: 0x00005D6C File Offset: 0x00003F6C
22 public string GetNameInfo(global::System.Security.Cryptography.X509Certificates.X509NameType nameType, bool forIssuer)
23 {
24 if (nameType != global::System.Security.Cryptography.X509Certificates.X509NameType.SimpleName)
25 {
26 return "";
27 }
28 string text;
29 if (text == null)
30 {
31 return text;
32 }
33 return "";
34 }
35
36 // Token: 0x060001AC RID: 428 RVA: 0x00005E20 File Offset: 0x00004020
37 private static string GetSimpleNameInfo(global::System.Security.Cryptography.X509Certificates.X500DistinguishedName name)
38 {
39 long num = 0L;
40 long num2 = 0L;
42 long num3;
43 int num4;
44 if (enumerable == null)
45 {
46 num3 = 0L;
47 num4 = 9;
48 if (enumerable != null)
49 {
50 }
51 }
52 if (num3 != 0L || num4 != 0 || num2 != 0L || num == 0L)
53 {
54 }
55 throw new OutOfMemoryException();
56 }
57
58 // Token: 0x060001AD RID: 429 RVA: 0x00005E70 File Offset: 0x00004070
59 private static string FindAltNameMatch(byte[] extensionBytes, GeneralNameType matchType, string otherOid)
60 {
61 if (extensionBytes != null)
62 {
63 }
64 global::System.Security.Cryptography.DerSequenceReader derSequenceReader;
65 string text = derSequenceReader.ReadOidAsString();
66 string text2;
67 return text2;
68 }
69
70 // Token: 0x060001AE RID: 430 RVA: 0x00005EA4 File Offset: 0x000040A4
71 private static IEnumerable<KeyValuePair<string, string>> ReadReverseRdns(global::System.Security.Cryptography.X509Certificates.X500DistinguishedName name)
72 {
73 /*
74An exception occurred when decompiling this method (060001AE)
75
76ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>> Internal.Cryptography.Pal.CertificateData::ReadReverseRdns(System.Security.Cryptography.X509Certificates.X500DistinguishedName)
77
78 ---> System.Exception: Basic block has to end with unconditional control flow.
79{
80 Block_0:
81 stloc:int32(var_1_07, callgetter:int32(Environment::get_CurrentManagedThreadId))
82}
83
84 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
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93
94 // Token: 0x04000146 RID: 326
95 internal byte[] RawData;
96
97 // Token: 0x04000147 RID: 327
98 internal byte[] SubjectPublicKeyInfo;
99
100 // Token: 0x04000148 RID: 328
101 internal int Version;
102
103 // Token: 0x04000149 RID: 329
104 internal byte[] SerialNumber;
105
106 // Token: 0x0400014A RID: 330
108
109 // Token: 0x0400014B RID: 331
110 internal global::System.Security.Cryptography.X509Certificates.X500DistinguishedName Issuer;
111
112 // Token: 0x0400014C RID: 332
114
115 // Token: 0x0400014D RID: 333
117
118 // Token: 0x0400014E RID: 334
119 internal global::System.Security.Cryptography.X509Certificates.X500DistinguishedName Subject;
120
121 // Token: 0x0400014F RID: 335
123
124 // Token: 0x04000150 RID: 336
125 internal byte[] PublicKey;
126
127 // Token: 0x04000151 RID: 337
128 internal byte[] IssuerUniqueId;
129
130 // Token: 0x04000152 RID: 338
131 internal byte[] SubjectUniqueId;
132
133 // Token: 0x04000153 RID: 339
134 internal List<global::System.Security.Cryptography.X509Certificates.X509Extension> Extensions;
135
136 // Token: 0x04000154 RID: 340
138
139 // Token: 0x04000155 RID: 341
140 internal byte[] SignatureValue;
141
142 // Token: 0x02000073 RID: 115
143 internal struct AlgorithmIdentifier
144 {
145 // Token: 0x04000156 RID: 342
146 internal string AlgorithmId;
147
148 // Token: 0x04000157 RID: 343
149 internal byte[] Parameters;
150 }
151
152 // Token: 0x02000074 RID: 116
155 {
156 // Token: 0x060001AF RID: 431 RVA: 0x00005EB8 File Offset: 0x000040B8
159 {
160 this.<>1__state = <>1__state;
162 this.<>l__initialThreadId = currentManagedThreadId;
163 }
164
165 // Token: 0x060001B0 RID: 432 RVA: 0x00005EE4 File Offset: 0x000040E4
167 void IDisposable.Dispose()
168 {
169 }
170
171 // Token: 0x060001B1 RID: 433 RVA: 0x00002050 File Offset: 0x00000250
172 private bool MoveNext()
173 {
174 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
175 }
176
177 // Token: 0x1700005D RID: 93
178 // (get) Token: 0x060001B2 RID: 434 RVA: 0x00002050 File Offset: 0x00000250
180 {
182 get
183 {
184 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
185 }
186 }
187
188 // Token: 0x060001B3 RID: 435 RVA: 0x00002050 File Offset: 0x00000250
190 void IEnumerator.Reset()
191 {
192 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
193 }
194
195 // Token: 0x1700005E RID: 94
196 // (get) Token: 0x060001B4 RID: 436 RVA: 0x00002050 File Offset: 0x00000250
198 {
200 get
201 {
202 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
203 }
204 }
205
206 // Token: 0x060001B5 RID: 437 RVA: 0x00005EF4 File Offset: 0x000040F4
209 {
210 /*
211An exception occurred when decompiling this method (060001B5)
212
213ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>> Internal.Cryptography.Pal.CertificateData/<ReadReverseRdns>d__21::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>.GetEnumerator()
214
215 ---> System.Exception: Basic block has to end with unconditional control flow.
216{
217 Block_0:
218 stloc:int32(var_0_06, ldfld:int32('<ReadReverseRdns>d__21'::<>1__state, ldloc:'<ReadReverseRdns>d__21'(this)))
219 stloc:int32(var_1_0D, ldfld:int32('<ReadReverseRdns>d__21'::<>l__initialThreadId, ldloc:'<ReadReverseRdns>d__21'(this)))
220 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
221 stloc:int32(var_5_1E, callgetter:int32(Environment::get_CurrentManagedThreadId))
222 stloc:X500DistinguishedName(var_6_26, ldfld:X500DistinguishedName('<ReadReverseRdns>d__21'::<>3__name, ldloc:'<ReadReverseRdns>d__21'(this)))
223}
224
225 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
226 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
227 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
228 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
229 --- End of inner exception stack trace ---
230 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
231 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
232*/;
233 }
234
235 // Token: 0x060001B6 RID: 438 RVA: 0x00005F28 File Offset: 0x00004128
238 {
239 /*
240An exception occurred when decompiling this method (060001B6)
241
242ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator Internal.Cryptography.Pal.CertificateData/<ReadReverseRdns>d__21::System.Collections.IEnumerable.GetEnumerator()
243
244 ---> System.Exception: Basic block has to end with unconditional control flow.
245{
246 Block_0:
247 stloc:class [mscorlib]System.Collections.Generic.IEnumerator`1<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<string, string>>(var_0_06, call:IEnumerator`1[exp:class [mscorlib]System.Collections.Generic.IEnumerator`1<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<string, string>>]('<ReadReverseRdns>d__21'::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>.GetEnumerator, ldloc:'<ReadReverseRdns>d__21'(this)))
248}
249
250 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
251 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
252 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
253 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
254 --- End of inner exception stack trace ---
255 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
256 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
257*/;
258 }
259
260 // Token: 0x04000158 RID: 344
261 private int <>1__state;
262
263 // Token: 0x04000159 RID: 345
265
266 // Token: 0x0400015A RID: 346
267 private int <>l__initialThreadId;
268
269 // Token: 0x0400015B RID: 347
270 private global::System.Security.Cryptography.X509Certificates.X500DistinguishedName name;
271
272 // Token: 0x0400015C RID: 348
273 public global::System.Security.Cryptography.X509Certificates.X500DistinguishedName <>3__name;
274
275 // Token: 0x0400015D RID: 349
276 private Stack<global::System.Security.Cryptography.DerSequenceReader> <rdnReaders>5__2;
277
278 // Token: 0x0400015E RID: 350
279 private global::System.Security.Cryptography.DerSequenceReader <rdnReader>5__3;
280 }
281 }
282}
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId
CertificateData.AlgorithmIdentifier PublicKeyAlgorithm
global::System.Security.Cryptography.X509Certificates.X500DistinguishedName Issuer
static string GetSimpleNameInfo(global::System.Security.Cryptography.X509Certificates.X500DistinguishedName name)
global::System.Security.Cryptography.X509Certificates.X500DistinguishedName Subject
CertificateData.AlgorithmIdentifier SignatureAlgorithm
static IEnumerable< KeyValuePair< string, string > > ReadReverseRdns(global::System.Security.Cryptography.X509Certificates.X500DistinguishedName name)
static string FindAltNameMatch(byte[] extensionBytes, GeneralNameType matchType, string otherOid)
CertificateData.AlgorithmIdentifier TbsSignature
List< global::System.Security.Cryptography.X509Certificates.X509Extension > Extensions
string GetNameInfo(global::System.Security.Cryptography.X509Certificates.X509NameType nameType, bool forIssuer)