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
CryptoConvert.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000052 RID: 82
8 public sealed class CryptoConvert
9 {
10 // Token: 0x06000237 RID: 567 RVA: 0x00002050 File Offset: 0x00000250
11 private static int ToInt32LE(byte[] bytes, int offset)
12 {
13 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
14 }
15
16 // Token: 0x06000238 RID: 568 RVA: 0x00002050 File Offset: 0x00000250
17 private static uint ToUInt32LE(byte[] bytes, int offset)
18 {
19 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
20 }
21
22 // Token: 0x06000239 RID: 569 RVA: 0x00009220 File Offset: 0x00007420
23 private static byte[] Trim(byte[] array)
24 {
25 }
26
27 // Token: 0x0600023A RID: 570 RVA: 0x00009230 File Offset: 0x00007430
28 public static RSA FromCapiPrivateKeyBlob(byte[] blob)
29 {
30 RSA rsa;
31 return rsa;
32 }
33
34 // Token: 0x0600023B RID: 571 RVA: 0x00009240 File Offset: 0x00007440
35 public static RSA FromCapiPrivateKeyBlob(byte[] blob, int offset)
36 {
37 return RSA.Create();
38 }
39
40 // Token: 0x0600023C RID: 572 RVA: 0x00009260 File Offset: 0x00007460
42 {
43 int num = 1;
44 if (blob != null && num == 0 && num == 0)
45 {
47 rsaparameters.DP = 42163096;
48 rsaparameters.DQ = 42163096;
49 rsaparameters.Q = 42163096;
50 return;
51 }
52 }
53
54 // Token: 0x0600023D RID: 573 RVA: 0x000092A4 File Offset: 0x000074A4
55 public static string ToHex(byte[] input)
56 {
57 /*
58An exception occurred when decompiling this method (0600023D)
59
60ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Mono.Security.Cryptography.CryptoConvert::ToHex(System.Byte[])
61
62 ---> System.Exception: Basic block has to end with unconditional control flow.
63{
64 Block_0:
65 stloc:CultureInfo(var_2_09, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
66}
67
68 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
69 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
70 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
71 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
72 --- End of inner exception stack trace ---
73 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
74 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
75*/;
76 }
77
78 // Token: 0x0600023E RID: 574 RVA: 0x000092C0 File Offset: 0x000074C0
79 private static byte FromHexChar(char c)
80 {
81 }
82
83 // Token: 0x0600023F RID: 575 RVA: 0x000092D8 File Offset: 0x000074D8
84 public static byte[] FromHex(string hex)
85 {
86 char c;
87 byte b = CryptoConvert.FromHexChar(c);
88 char c2;
90 }
91 }
92}
class f__AnonymousType0<< Count > j__TPar
static byte[] Trim(byte[] array)
static int ToInt32LE(byte[] bytes, int offset)
static RSAParameters GetParametersFromCapiPrivateKeyBlob(byte[] blob, int offset)
static RSA FromCapiPrivateKeyBlob(byte[] blob, int offset)
static RSA FromCapiPrivateKeyBlob(byte[] blob)
static string ToHex(byte[] input)
static uint ToUInt32LE(byte[] bytes, int offset)
static new RSA Create()
Definition RSA.cs:18