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
CryptoConfig.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200030F RID: 783
10 [ComVisible(true)]
11 public class CryptoConfig
12 {
13 // Token: 0x06001A77 RID: 6775 RVA: 0x0000207A File Offset: 0x0000027A
14 public static void AddOID(string oid, params string[] names)
15 {
16 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
17 }
18
19 // Token: 0x06001A78 RID: 6776 RVA: 0x00038B0C File Offset: 0x00036D0C
20 public static object CreateFromName(string name)
21 {
22 if (!true)
23 {
24 }
25 object obj;
26 return obj;
27 }
28
29 // Token: 0x06001A79 RID: 6777 RVA: 0x00038B20 File Offset: 0x00036D20
30 public static object CreateFromName(string name, params object[] args)
31 {
32 string text;
33 uint num = <PrivateImplementationDetails>.ComputeStringHash(text);
34 bool flag = text == "x509chain";
35 if ("x509chain" == null && "2.5.29.19" == null)
36 {
37 if ("system.security.cryptography.symmetricalgorithm" == null)
38 {
39 }
40 long num2 = 0L;
41 if ("system.security.cryptography.symmetricalgorithm" == null)
42 {
43 }
44 Monitor.Enter("system.security.cryptography.symmetricalgorithm", num2 != 0L);
45 if ("system.security.cryptography.symmetricalgorithm" == null)
46 {
47 }
48 object obj;
49 return obj;
50 }
51 return "System.Security.Cryptography.AesCryptoServiceProvider, System.Core";
52 }
53
54 // Token: 0x06001A7A RID: 6778 RVA: 0x00039024 File Offset: 0x00037224
55 internal static string MapNameToOID(string name, object arg)
56 {
57 if (!true)
58 {
59 }
60 string text;
61 return text;
62 }
63
64 // Token: 0x06001A7B RID: 6779 RVA: 0x00039038 File Offset: 0x00037238
65 public static string MapNameToOID(string name)
66 {
67 string text;
68 uint num = <PrivateImplementationDetails>.ComputeStringHash(text);
69 bool flag = text == "md5";
70 bool flag2 = text == "system.security.cryptography.sha1cng";
71 bool flag3 = text == "rc2";
72 bool flag4 = text == "ripemd160";
73 bool flag5 = text == "sha512";
74 bool flag6 = text == "system.security.cryptography.sha256";
75 bool flag7 = text == "system.security.cryptography.sha384managed";
76 return "2.16.840.1.101.3.4.2.2";
77 }
78
79 // Token: 0x06001A7C RID: 6780 RVA: 0x000390BC File Offset: 0x000372BC
80 private static void Initialize()
81 {
82 if (!true)
83 {
84 }
85 if (!true)
86 {
87 }
88 if (!true)
89 {
90 }
91 }
92
93 // Token: 0x06001A7D RID: 6781 RVA: 0x000390D4 File Offset: 0x000372D4
94 public static void AddAlgorithm(Type algorithm, params string[] names)
95 {
96 if (!true)
97 {
98 }
99 bool isVisible = algorithm.IsVisible;
100 if (names == null)
101 {
102 return;
103 }
105 if (!false)
106 {
107 return;
108 }
109 throw new OutOfMemoryException();
110 }
111
112 // Token: 0x06001A7E RID: 6782 RVA: 0x00039120 File Offset: 0x00037320
113 public static byte[] EncodeOID(string str)
114 {
115 byte b2;
116 byte b = Convert.ToByte((int)b2);
117 long num;
118 return Convert.ToByte(num);
119 }
120
121 // Token: 0x06001A7F RID: 6783 RVA: 0x0003918C File Offset: 0x0003738C
122 private static byte[] EncodeLongNumber(long x)
123 {
124 /*
125An exception occurred when decompiling this method (06001A7F)
126
127ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.CryptoConfig::EncodeLongNumber(System.Int64)
128
129 ---> System.Exception: Basic block has to end with unconditional control flow.
130{
131 Block_0:
132 stloc:uint8(var_1_08, call:uint8(Convert::ToByte, ldc.i4:int64(1)))
133 stloc:string(var_2_13, call:string(Locale::GetText, ldstr:string("Part of OID doesn't fit in Int32")))
134}
135
136 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
137 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
138 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
139 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
140 --- End of inner exception stack trace ---
141 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
142 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
143*/;
144 }
145
146 // Token: 0x170002E2 RID: 738
147 // (get) Token: 0x06001A80 RID: 6784 RVA: 0x000391AC File Offset: 0x000373AC
148 [MonoLimitation("nothing is FIPS certified so it never make sense to restrict to this (empty) subset")]
149 public static bool AllowOnlyFipsAlgorithms
150 {
151 get
152 {
153 }
154 }
155
156 // Token: 0x06001A81 RID: 6785 RVA: 0x000391BC File Offset: 0x000373BC
158 {
159 }
160
161 // Token: 0x06001A82 RID: 6786 RVA: 0x000391D0 File Offset: 0x000373D0
162 // Note: this type is marked as 'beforefieldinit'.
164 {
165 }
166
167 // Token: 0x04000D81 RID: 3457
168 private static readonly object lockObject;
169
170 // Token: 0x04000D82 RID: 3458
172 }
173}
class f__AnonymousType0<< Count > j__TPar
static byte ToByte(object value, IFormatProvider provider)
Definition Convert.cs:737
static void AddOID(string oid, params string[] names)
static Dictionary< string, Type > algorithms
static object CreateFromName(string name, params object[] args)
static void AddAlgorithm(Type algorithm, params string[] names)
static object CreateFromName(string name)
static string MapNameToOID(string name)
static string MapNameToOID(string name, object arg)
static void Enter(object obj)
Definition Monitor.cs:11