terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
PKCS1.cs
Go to the documentation of this file.
1using System;
8
10{
11 [global::Cpp2ILInjected.Token(Token = "0x2000058")]
12 public sealed class PKCS1
13 {
14 [global::Cpp2ILInjected.Token(Token = "0x600025C")]
15 [global::Cpp2ILInjected.Address(RVA = "0x1A9E104", Offset = "0x1A9E104", Length = "0x50")]
16 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
17 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
18 private static bool Compare(byte[] array1, byte[] array2)
19 {
20 throw null;
21 }
22
23 [global::Cpp2ILInjected.Token(Token = "0x600025D")]
24 [global::Cpp2ILInjected.Address(RVA = "0x1A9E154", Offset = "0x1A9E154", Length = "0x80")]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
26 {
27 typeof(RSA),
29 typeof(byte[]),
30 typeof(byte[]),
31 typeof(bool)
32 }, ReturnType = typeof(bool))]
33 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
35 {
37 typeof(int),
39 typeof(int),
40 typeof(int)
41 }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
43 public static byte[] I2OSP(byte[] x, int size)
44 {
45 throw null;
46 }
47
48 [global::Cpp2ILInjected.Token(Token = "0x600025E")]
49 [global::Cpp2ILInjected.Address(RVA = "0x1A9E1D4", Offset = "0x1A9E1D4", Length = "0xA0")]
50 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
52 {
53 typeof(RSA),
55 typeof(byte[]),
56 typeof(byte[]),
57 typeof(bool)
58 }, ReturnType = typeof(bool))]
59 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
61 {
63 typeof(int),
65 typeof(int),
66 typeof(int)
67 }, ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
69 public static byte[] OS2IP(byte[] x)
70 {
71 throw null;
72 }
73
74 [global::Cpp2ILInjected.Token(Token = "0x600025F")]
75 [global::Cpp2ILInjected.Address(RVA = "0x1A9E274", Offset = "0x1A9E274", Length = "0x10")]
76 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
77 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
78 public static byte[] RSAVP1(RSA rsa, byte[] s)
79 {
80 throw null;
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x6000260")]
84 [global::Cpp2ILInjected.Address(RVA = "0x1A9E284", Offset = "0x1A9E284", Length = "0x214")]
85 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
86 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(AuthenticodeDeformatter), Member = "VerifyCounterSignature", MemberParameters = new object[]
87 {
89 typeof(byte[])
90 }, ReturnType = typeof(bool))]
91 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "OS2IP", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
94 {
95 typeof(byte[]),
96 typeof(int)
97 }, ReturnType = typeof(byte[]))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "Encode_v15", MemberParameters = new object[]
99 {
101 typeof(byte[]),
102 typeof(int)
103 }, ReturnType = typeof(byte[]))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
105 {
106 typeof(Array),
107 typeof(int),
108 typeof(Array),
109 typeof(int),
110 typeof(int)
111 }, ReturnType = typeof(void))]
112 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
113 public static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
114 {
115 throw null;
116 }
117
118 [global::Cpp2ILInjected.Token(Token = "0x6000261")]
119 [global::Cpp2ILInjected.Address(RVA = "0x1A9E498", Offset = "0x1A9E498", Length = "0x2E4")]
120 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
121 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
122 {
123 typeof(RSA),
125 typeof(byte[]),
126 typeof(byte[]),
127 typeof(bool)
128 }, ReturnType = typeof(bool))]
129 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CryptoConfig), Member = "MapNameToOID", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CryptoConfig), Member = "EncodeOID", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(byte[]))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = "Add", MemberParameters = new object[] { typeof(ASN1) }, ReturnType = typeof(ASN1))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[]
136 {
137 typeof(byte),
138 typeof(byte[])
139 }, ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
141 {
142 typeof(Array),
143 typeof(int),
144 typeof(Array),
145 typeof(int),
146 typeof(int)
147 }, ReturnType = typeof(void))]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
149 {
150 typeof(int),
151 typeof(int)
152 }, ReturnType = typeof(int))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
154 {
155 typeof(string),
156 typeof(string)
157 }, ReturnType = typeof(string))]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
159 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 19)]
160 public static byte[] Encode_v15(HashAlgorithm hash, byte[] hashValue, int emLength)
161 {
162 throw null;
163 }
164
165 [global::Cpp2ILInjected.Token(Token = "0x6000262")]
166 [global::Cpp2ILInjected.Address(RVA = "0x1A9E77C", Offset = "0x1A9E77C", Length = "0x390")]
167 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
168 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(X509Crl), Member = "VerifySignature", MemberParameters = new object[] { typeof(RSA) }, ReturnType = typeof(bool))]
169 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(X509Certificate), Member = "get_Hash", ReturnType = typeof(byte[]))]
170 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(X509Certificate), Member = "VerifySignature", MemberParameters = new object[] { typeof(RSA) }, ReturnType = typeof(bool))]
171 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "CreateFromOid", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(HashAlgorithm))]
172 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(<PrivateImplementationDetails>), Member = "ComputeStringHash", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(uint))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
175 {
176 typeof(string),
177 typeof(string)
178 }, ReturnType = typeof(bool))]
179 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
180 {
181 typeof(string),
182 typeof(string)
183 }, ReturnType = typeof(string))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
185 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 23)]
186 internal static string HashNameFromOid(string oid, bool throwOnError = true)
187 {
188 throw null;
189 }
190
191 [global::Cpp2ILInjected.Token(Token = "0x6000263")]
192 [global::Cpp2ILInjected.Address(RVA = "0x1A9EB0C", Offset = "0x1A9EB0C", Length = "0x5C")]
193 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(X509Crl), Member = "get_Hash", ReturnType = typeof(byte[]))]
194 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
195 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "HashNameFromOid", MemberParameters = new object[]
196 {
197 typeof(string),
198 typeof(bool)
199 }, ReturnType = typeof(string))]
200 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
201 internal static HashAlgorithm CreateFromOid(string oid)
202 {
203 throw null;
204 }
205
206 [global::Cpp2ILInjected.Token(Token = "0x6000264")]
207 [global::Cpp2ILInjected.Address(RVA = "0x1A9EB68", Offset = "0x1A9EB68", Length = "0x408")]
208 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
209 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS12.DeriveBytes), Member = "Derive", MemberParameters = new object[]
210 {
211 typeof(byte[]),
212 typeof(int)
213 }, ReturnType = typeof(byte[]))]
214 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(X509Certificate), Member = "get_Hash", ReturnType = typeof(byte[]))]
215 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(<PrivateImplementationDetails>), Member = "ComputeStringHash", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(uint))]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
218 {
219 typeof(string),
220 typeof(string)
221 }, ReturnType = typeof(bool))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SHA1), Member = "Create", ReturnType = typeof(SHA1))]
223 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MD2), Member = "Create", ReturnType = typeof(MD2))]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MD5), Member = "Create", ReturnType = typeof(MD5))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SHA384), Member = "Create", ReturnType = typeof(SHA384))]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RIPEMD160), Member = "Create", ReturnType = typeof(RIPEMD160))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SHA256), Member = "Create", ReturnType = typeof(SHA256))]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MD4), Member = "Create", ReturnType = typeof(MD4))]
229 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SHA512), Member = "Create", ReturnType = typeof(SHA512))]
230 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Activator), Member = "CreateInstance", MemberParameters = new object[] { typeof(Type) }, ReturnType = typeof(object))]
231 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
232 {
233 typeof(string),
234 typeof(string)
235 }, ReturnType = typeof(string))]
236 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
237 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 29)]
238 internal static HashAlgorithm CreateFromName(string name)
239 {
240 throw null;
241 }
242
243 // Note: this type is marked as 'beforefieldinit'.
244 [global::Cpp2ILInjected.Token(Token = "0x6000265")]
245 [global::Cpp2ILInjected.Address(RVA = "0x1A9EF70", Offset = "0x1A9EF70", Length = "0x150")]
246 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
247 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
248 {
249 typeof(Array),
251 }, ReturnType = typeof(void))]
252 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
253 static PKCS1()
254 {
255 throw null;
256 }
257
258 [global::Cpp2ILInjected.Token(Token = "0x400025F")]
259 private static byte[] emptySHA1;
260
261 [global::Cpp2ILInjected.Token(Token = "0x4000260")]
262 private static byte[] emptySHA256;
263
264 [global::Cpp2ILInjected.Token(Token = "0x4000261")]
265 private static byte[] emptySHA384;
266
267 [global::Cpp2ILInjected.Token(Token = "0x4000262")]
268 private static byte[] emptySHA512;
269 }
270}
class f__AnonymousType0<< Count > j__TPar
static byte[] Encode_v15(HashAlgorithm hash, byte[] hashValue, int emLength)
Definition PKCS1.cs:160
static string HashNameFromOid(string oid, bool throwOnError=true)
Definition PKCS1.cs:186
static bool Compare(byte[] array1, byte[] array2)
Definition PKCS1.cs:18
static HashAlgorithm CreateFromName(string name)
Definition PKCS1.cs:238
static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
Definition PKCS1.cs:113
static HashAlgorithm CreateFromOid(string oid)
Definition PKCS1.cs:201
static byte[] OS2IP(byte[] x)
Definition PKCS1.cs:69
static byte[] RSAVP1(RSA rsa, byte[] s)
Definition PKCS1.cs:78
static byte[] I2OSP(byte[] x, int size)
Definition PKCS1.cs:43