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
X509SubjectKeyIdentifierExtension.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200011D RID: 285
8 {
9 // Token: 0x060006BF RID: 1727 RVA: 0x00018BE0 File Offset: 0x00016DE0
13
14 // Token: 0x060006C0 RID: 1728 RVA: 0x00018BF4 File Offset: 0x00016DF4
23
24 // Token: 0x060006C1 RID: 1729 RVA: 0x00018C2C File Offset: 0x00016E2C
26 {
27 do
28 {
29 base..ctor();
30 if (subjectKeyIdentifier == null)
31 {
32 return;
33 }
34 }
35 while (!true);
36 object obj;
37 if (obj != null)
38 {
39 if (obj != null)
40 {
42 if (obj != null)
43 {
44 goto IL_0022;
45 }
46 }
47 throw new InvalidCastException();
48 }
49 IL_0022:
50 byte[] array = this.Encode();
52 }
53
54 // Token: 0x060006C2 RID: 1730 RVA: 0x00018C6C File Offset: 0x00016E6C
56 {
57 if (subjectKeyIdentifier != null)
58 {
59 int stringLength = subjectKeyIdentifier._stringLength;
62 byte[] array2 = this.Encode();
64 return;
65 }
66 }
67
68 // Token: 0x060006C3 RID: 1731 RVA: 0x00018CA8 File Offset: 0x00016EA8
72
73 // Token: 0x060006C4 RID: 1732 RVA: 0x00018CB8 File Offset: 0x00016EB8
75 {
76 do
77 {
78 base..ctor();
79 if (key == null)
80 {
81 return;
82 }
83 byte[] raw = key._keyValue._raw;
84 }
86 SHA1 sha = SHA1.Create();
87 }
88
89 // Token: 0x17000177 RID: 375
90 // (get) Token: 0x060006C5 RID: 1733 RVA: 0x00018D5C File Offset: 0x00016F5C
92 {
93 get
94 {
95 AsnDecodeStatus status = this._status;
97 if (subjectKeyIdentifier != null)
98 {
100 this._ski = text;
101 return text;
102 }
103 return this._ski;
104 }
105 }
106
107 // Token: 0x060006C6 RID: 1734 RVA: 0x00018D90 File Offset: 0x00016F90
109 {
110 while (asnEncodedData == null)
111 {
112 }
113 if (asnEncodedData._oid != null)
114 {
115 return;
116 }
117 byte[] raw = asnEncodedData._raw;
118 base.RawData = raw;
119 byte[] raw2 = this._raw;
120 this._critical = "2.5.29.14" != null;
123 }
124
125 // Token: 0x060006C7 RID: 1735 RVA: 0x00018DE4 File Offset: 0x00016FE4
126 internal static byte FromHexChar(char c)
127 {
128 }
129
130 // Token: 0x060006C8 RID: 1736 RVA: 0x00018DF8 File Offset: 0x00016FF8
131 internal static byte FromHexChars(char c1, char c2)
132 {
133 }
134
135 // Token: 0x060006C9 RID: 1737 RVA: 0x00018E18 File Offset: 0x00017018
136 internal static byte[] FromHex(string hex)
137 {
138 char c;
139 char c2;
141 }
142
143 // Token: 0x060006CA RID: 1738 RVA: 0x00018E30 File Offset: 0x00017030
145 {
146 int num = 1;
147 if (extension != null && num != 0)
148 {
149 byte[] array;
151 return;
152 }
153 }
154
155 // Token: 0x060006CB RID: 1739 RVA: 0x00018E60 File Offset: 0x00017060
156 internal byte[] Encode()
157 {
158 /*
159An exception occurred when decompiling this method (060006CB)
160
161ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension::Encode()
162
163 ---> System.Exception: Basic block has to end with unconditional control flow.
164{
165 Block_0:
166 stloc:uint8[](var_0_06, ldfld:uint8[](X509SubjectKeyIdentifierExtension::_subjectKeyIdentifier, ldloc:X509SubjectKeyIdentifierExtension(this)))
167}
168
169 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
170 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
171 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
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 88
173 --- End of inner exception stack trace ---
174 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
175 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
176*/;
177 }
178
179 // Token: 0x060006CC RID: 1740 RVA: 0x00018E74 File Offset: 0x00017074
180 internal override string ToString(bool multiLine)
181 {
182 AsnDecodeStatus status = this._status;
183 return "Unknown Key Usage ({0})";
184 }
185
186 // Token: 0x04000539 RID: 1337
187 internal const string oid = "2.5.29.14";
188
189 // Token: 0x0400053A RID: 1338
190 internal const string friendlyName = "Subject Key Identifier";
191
192 // Token: 0x0400053B RID: 1339
193 private byte[] _subjectKeyIdentifier;
194
195 // Token: 0x0400053C RID: 1340
196 private string _ski;
197
198 // Token: 0x0400053D RID: 1341
200 }
201}
class f__AnonymousType0<< Count > j__TPar
static string ToHex(byte[] input)
static new SHA1 Create()
Definition SHA1.cs:18
X509SubjectKeyIdentifierExtension(AsnEncodedData encodedSubjectKeyIdentifier, bool critical)
X509SubjectKeyIdentifierExtension(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm, bool critical)