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: 0x02000042 RID: 66
8 internal sealed class CryptoConvert
9 {
10 // Token: 0x0600011A RID: 282 RVA: 0x0000207A File Offset: 0x0000027A
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: 0x0600011B RID: 283 RVA: 0x0000207A File Offset: 0x0000027A
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: 0x0600011C RID: 284 RVA: 0x0000207A File Offset: 0x0000027A
23 private static byte[] GetBytesLE(int val)
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27
28 // Token: 0x0600011D RID: 285 RVA: 0x00004930 File Offset: 0x00002B30
29 private static byte[] Trim(byte[] array)
30 {
31 }
32
33 // Token: 0x0600011E RID: 286 RVA: 0x00004940 File Offset: 0x00002B40
34 public static RSA FromCapiPrivateKeyBlob(byte[] blob, int offset)
35 {
36 return RSA.Create();
37 }
38
39 // Token: 0x0600011F RID: 287 RVA: 0x00004954 File Offset: 0x00002B54
41 {
42 int num = 1;
43 if (blob != null && num == 0 && num == 0)
44 {
45 int num2 = 4;
46 long num3 = 0L;
47 byte[] array;
48 Buffer.BlockCopy(array, 42163096, array, (int)num3, num2);
50 rsaparameters.DP = 42163096;
51 rsaparameters.DQ = 42163096;
52 rsaparameters.Q = 42163096;
53 return;
54 }
55 }
56
57 // Token: 0x06000120 RID: 288 RVA: 0x000049B0 File Offset: 0x00002BB0
58 public static DSA FromCapiPrivateKeyBlobDSA(byte[] blob, int offset)
59 {
60 int num = 1;
61 if (num == 0 && num == 0)
62 {
63 return DSA.Create();
64 }
65 }
66
67 // Token: 0x06000121 RID: 289 RVA: 0x000049E0 File Offset: 0x00002BE0
68 public static byte[] ToCapiPrivateKeyBlob(RSA rsa)
69 {
70 byte[] bytesLE = CryptoConvert.GetBytesLE(42163096);
71 return 42163096;
72 }
73
74 // Token: 0x06000122 RID: 290 RVA: 0x00004A08 File Offset: 0x00002C08
75 public static byte[] ToCapiPrivateKeyBlob(DSA dsa)
76 {
77 byte[] bytesLE = CryptoConvert.GetBytesLE(42163096);
78 byte[] bytesLE2 = CryptoConvert.GetBytesLE(43151360);
79 return 42163096;
80 }
81
82 // Token: 0x06000123 RID: 291 RVA: 0x00004A34 File Offset: 0x00002C34
83 public static RSA FromCapiPublicKeyBlob(byte[] blob, int offset)
84 {
85 return RSA.Create();
86 }
87
88 // Token: 0x06000124 RID: 292 RVA: 0x00004A50 File Offset: 0x00002C50
90 {
91 int num = 1;
92 if (blob == null || num != 0 || num == 0)
93 {
94 return;
95 }
96 }
97
98 // Token: 0x06000125 RID: 293 RVA: 0x00004A74 File Offset: 0x00002C74
99 public static DSA FromCapiPublicKeyBlobDSA(byte[] blob, int offset)
100 {
101 int num = 1;
102 if (num == 0 && num == 0)
103 {
104 return DSA.Create();
105 }
106 }
107
108 // Token: 0x06000126 RID: 294 RVA: 0x00004AA0 File Offset: 0x00002CA0
109 public static byte[] ToCapiPublicKeyBlob(RSA rsa)
110 {
111 byte[] bytesLE = CryptoConvert.GetBytesLE(42163096);
112 return 42163096;
113 }
114
115 // Token: 0x06000127 RID: 295 RVA: 0x00004AC4 File Offset: 0x00002CC4
116 public static byte[] ToCapiPublicKeyBlob(DSA dsa)
117 {
118 byte[] bytesLE = CryptoConvert.GetBytesLE(42163096);
119 byte[] bytesLE2 = CryptoConvert.GetBytesLE(43151360);
120 return 42163096;
121 }
122
123 // Token: 0x06000128 RID: 296 RVA: 0x00004AF0 File Offset: 0x00002CF0
124 public static RSA FromCapiKeyBlob(byte[] blob)
125 {
126 RSA rsa;
127 return rsa;
128 }
129
130 // Token: 0x06000129 RID: 297 RVA: 0x00004B00 File Offset: 0x00002D00
131 public static RSA FromCapiKeyBlob(byte[] blob, int offset)
132 {
133 RSA rsa;
134 return rsa;
135 }
136
137 // Token: 0x0600012A RID: 298 RVA: 0x00004B10 File Offset: 0x00002D10
138 public static DSA FromCapiKeyBlobDSA(byte[] blob)
139 {
140 DSA dsa;
141 return dsa;
142 }
143
144 // Token: 0x0600012B RID: 299 RVA: 0x00004B20 File Offset: 0x00002D20
145 public static DSA FromCapiKeyBlobDSA(byte[] blob, int offset)
146 {
147 DSA dsa;
148 return dsa;
149 }
150 }
151}
class f__AnonymousType0<< Count > j__TPar
static byte[] Trim(byte[] array)
static RSA FromCapiPublicKeyBlob(byte[] blob, int offset)
static byte[] ToCapiPrivateKeyBlob(RSA rsa)
static int ToInt32LE(byte[] bytes, int offset)
static byte[] ToCapiPrivateKeyBlob(DSA dsa)
static DSA FromCapiKeyBlobDSA(byte[] blob, int offset)
static RSAParameters GetParametersFromCapiPrivateKeyBlob(byte[] blob, int offset)
static DSA FromCapiPublicKeyBlobDSA(byte[] blob, int offset)
static RSA FromCapiPrivateKeyBlob(byte[] blob, int offset)
static DSA FromCapiPrivateKeyBlobDSA(byte[] blob, int offset)
static RSAParameters GetParametersFromCapiPublicKeyBlob(byte[] blob, int offset)
static uint ToUInt32LE(byte[] bytes, int offset)
static RSA FromCapiKeyBlob(byte[] blob, int offset)
static DSA FromCapiKeyBlobDSA(byte[] blob)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
static new DSA Create()
Definition DSA.cs:18
static new RSA Create()
Definition RSA.cs:18