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;
2using System.IO;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x2000049")]
11 internal sealed class PKCS1
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x6000166")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1ABB604", Offset = "0x1ABB604", Length = "0x50")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
17 private static bool Compare(byte[] array1, byte[] array2)
18 {
19 throw null;
20 }
21
22 [global::Cpp2ILInjected.Token(Token = "0x6000167")]
23 [global::Cpp2ILInjected.Address(RVA = "0x1ABB654", Offset = "0x1ABB654", Length = "0x94")]
24 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Encrypt_OAEP", MemberParameters = new object[]
26 {
27 typeof(global::System.Security.Cryptography.RSA),
28 typeof(global::System.Security.Cryptography.HashAlgorithm),
29 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
30 typeof(byte[])
31 }, ReturnType = typeof(byte[]))]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Decrypt_OAEP", MemberParameters = new object[]
33 {
34 typeof(global::System.Security.Cryptography.RSA),
35 typeof(global::System.Security.Cryptography.HashAlgorithm),
36 typeof(byte[])
37 }, ReturnType = typeof(byte[]))]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
39 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
40 private static byte[] xor(byte[] array1, byte[] array2)
41 {
42 throw null;
43 }
44
45 [global::Cpp2ILInjected.Token(Token = "0x6000168")]
46 [global::Cpp2ILInjected.Address(RVA = "0x1ABB6E8", Offset = "0x1ABB6E8", Length = "0x1C0")]
47 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
48 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Encrypt_OAEP", MemberParameters = new object[]
49 {
50 typeof(global::System.Security.Cryptography.RSA),
51 typeof(global::System.Security.Cryptography.HashAlgorithm),
52 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
53 typeof(byte[])
54 }, ReturnType = typeof(byte[]))]
55 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Decrypt_OAEP", MemberParameters = new object[]
56 {
57 typeof(global::System.Security.Cryptography.RSA),
58 typeof(global::System.Security.Cryptography.HashAlgorithm),
59 typeof(byte[])
60 }, ReturnType = typeof(byte[]))]
61 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.HashAlgorithm), Member = "ComputeHash", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
63 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
64 private static byte[] GetEmptyHash(global::System.Security.Cryptography.HashAlgorithm hash)
65 {
66 throw null;
67 }
68
69 [global::Cpp2ILInjected.Token(Token = "0x6000169")]
70 [global::Cpp2ILInjected.Address(RVA = "0x1ABB8A8", Offset = "0x1ABB8A8", Length = "0x98")]
71 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "MGF1", MemberParameters = new object[]
72 {
73 typeof(global::System.Security.Cryptography.HashAlgorithm),
74 typeof(byte[]),
75 typeof(int)
76 }, ReturnType = typeof(byte[]))]
77 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BitConverterLE), Member = "GetBytes", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(byte[]))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Array[]), Member = "Reverse", MemberTypeParameters = new object[] { typeof(byte) }, MemberParameters = new object[]
80 {
81 typeof(byte[]),
82 typeof(int),
83 typeof(int)
84 }, ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
86 public static byte[] I2OSP(int x, int size)
87 {
88 throw null;
89 }
90
91 [global::Cpp2ILInjected.Token(Token = "0x600016A")]
92 [global::Cpp2ILInjected.Address(RVA = "0x1ABB940", Offset = "0x1ABB940", Length = "0x80")]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Encrypt_OAEP", MemberParameters = new object[]
94 {
95 typeof(global::System.Security.Cryptography.RSA),
96 typeof(global::System.Security.Cryptography.HashAlgorithm),
97 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
98 typeof(byte[])
99 }, ReturnType = typeof(byte[]))]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Decrypt_OAEP", MemberParameters = new object[]
101 {
102 typeof(global::System.Security.Cryptography.RSA),
103 typeof(global::System.Security.Cryptography.HashAlgorithm),
104 typeof(byte[])
105 }, ReturnType = typeof(byte[]))]
106 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
107 {
108 typeof(global::System.Security.Cryptography.RSA),
109 typeof(global::System.Security.Cryptography.HashAlgorithm),
110 typeof(byte[])
111 }, ReturnType = typeof(byte[]))]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
113 {
114 typeof(global::System.Security.Cryptography.RSA),
115 typeof(global::System.Security.Cryptography.HashAlgorithm),
116 typeof(byte[]),
117 typeof(byte[]),
118 typeof(bool)
119 }, ReturnType = typeof(bool))]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
122 {
123 typeof(global::System.Array),
124 typeof(int),
125 typeof(global::System.Array),
126 typeof(int),
127 typeof(int)
128 }, ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
130 public static byte[] I2OSP(byte[] x, int size)
131 {
132 throw null;
133 }
134
135 [global::Cpp2ILInjected.Token(Token = "0x600016B")]
136 [global::Cpp2ILInjected.Address(RVA = "0x1ABB9C0", Offset = "0x1ABB9C0", Length = "0xA0")]
137 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
138 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Encrypt_OAEP", MemberParameters = new object[]
139 {
140 typeof(global::System.Security.Cryptography.RSA),
141 typeof(global::System.Security.Cryptography.HashAlgorithm),
142 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
143 typeof(byte[])
144 }, ReturnType = typeof(byte[]))]
145 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Decrypt_OAEP", MemberParameters = new object[]
146 {
147 typeof(global::System.Security.Cryptography.RSA),
148 typeof(global::System.Security.Cryptography.HashAlgorithm),
149 typeof(byte[])
150 }, ReturnType = typeof(byte[]))]
151 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
152 {
153 typeof(global::System.Security.Cryptography.RSA),
154 typeof(global::System.Security.Cryptography.HashAlgorithm),
155 typeof(byte[])
156 }, ReturnType = typeof(byte[]))]
157 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
158 {
159 typeof(global::System.Security.Cryptography.RSA),
160 typeof(global::System.Security.Cryptography.HashAlgorithm),
161 typeof(byte[]),
162 typeof(byte[]),
163 typeof(bool)
164 }, ReturnType = typeof(bool))]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
167 {
168 typeof(global::System.Array),
169 typeof(int),
170 typeof(global::System.Array),
171 typeof(int),
172 typeof(int)
173 }, ReturnType = typeof(void))]
174 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
175 public static byte[] OS2IP(byte[] x)
176 {
177 throw null;
178 }
179
180 [global::Cpp2ILInjected.Token(Token = "0x600016C")]
181 [global::Cpp2ILInjected.Address(RVA = "0x1ABBA60", Offset = "0x1ABBA60", Length = "0x10")]
182 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
183 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
184 public static byte[] RSAEP(global::System.Security.Cryptography.RSA rsa, byte[] m)
185 {
186 throw null;
187 }
188
189 [global::Cpp2ILInjected.Token(Token = "0x600016D")]
190 [global::Cpp2ILInjected.Address(RVA = "0x1ABBA70", Offset = "0x1ABBA70", Length = "0x10")]
191 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
192 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
193 public static byte[] RSADP(global::System.Security.Cryptography.RSA rsa, byte[] c)
194 {
195 throw null;
196 }
197
198 [global::Cpp2ILInjected.Token(Token = "0x600016E")]
199 [global::Cpp2ILInjected.Address(RVA = "0x1ABBA80", Offset = "0x1ABBA80", Length = "0x10")]
200 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
201 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
202 public static byte[] RSASP1(global::System.Security.Cryptography.RSA rsa, byte[] m)
203 {
204 throw null;
205 }
206
207 [global::Cpp2ILInjected.Token(Token = "0x600016F")]
208 [global::Cpp2ILInjected.Address(RVA = "0x1ABBA90", Offset = "0x1ABBA90", Length = "0x10")]
209 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
210 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
211 public static byte[] RSAVP1(global::System.Security.Cryptography.RSA rsa, byte[] s)
212 {
213 throw null;
214 }
215
216 [global::Cpp2ILInjected.Token(Token = "0x6000170")]
217 [global::Cpp2ILInjected.Address(RVA = "0x1ABBAA0", Offset = "0x1ABBAA0", Length = "0x28C")]
218 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
219 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.Utils), Member = "RsaOaepEncrypt", MemberParameters = new object[]
220 {
221 typeof(global::System.Security.Cryptography.RSA),
222 typeof(global::System.Security.Cryptography.HashAlgorithm),
223 typeof(global::System.Security.Cryptography.PKCS1MaskGenerationMethod),
224 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
225 typeof(byte[])
226 }, ReturnType = typeof(byte[]))]
227 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "GetEmptyHash", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.HashAlgorithm) }, ReturnType = typeof(byte[]))]
229 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
230 {
231 typeof(global::System.Array),
232 typeof(int),
233 typeof(global::System.Array),
234 typeof(int),
235 typeof(int)
236 }, ReturnType = typeof(void))]
237 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "MGF1", MemberParameters = new object[]
238 {
239 typeof(global::System.Security.Cryptography.HashAlgorithm),
240 typeof(byte[]),
241 typeof(int)
242 }, ReturnType = typeof(byte[]))]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "xor", MemberParameters = new object[]
244 {
245 typeof(byte[]),
246 typeof(byte[])
247 }, ReturnType = typeof(byte[]))]
248 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "OS2IP", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
249 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
250 {
251 typeof(byte[]),
252 typeof(int)
253 }, ReturnType = typeof(byte[]))]
254 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
255 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
256 public static byte[] Encrypt_OAEP(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, global::System.Security.Cryptography.RandomNumberGenerator rng, byte[] M)
257 {
258 throw null;
259 }
260
261 [global::Cpp2ILInjected.Token(Token = "0x6000171")]
262 [global::Cpp2ILInjected.Address(RVA = "0x1ABBF10", Offset = "0x1ABBF10", Length = "0x2F0")]
263 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
264 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.Utils), Member = "RsaOaepDecrypt", MemberParameters = new object[]
265 {
266 typeof(global::System.Security.Cryptography.RSA),
267 typeof(global::System.Security.Cryptography.HashAlgorithm),
268 typeof(global::System.Security.Cryptography.PKCS1MaskGenerationMethod),
269 typeof(byte[])
270 }, ReturnType = typeof(byte[]))]
271 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
272 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "OS2IP", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
273 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
274 {
275 typeof(byte[]),
276 typeof(int)
277 }, ReturnType = typeof(byte[]))]
278 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
279 {
280 typeof(global::System.Array),
281 typeof(int),
282 typeof(global::System.Array),
283 typeof(int),
284 typeof(int)
285 }, ReturnType = typeof(void))]
286 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "MGF1", MemberParameters = new object[]
287 {
288 typeof(global::System.Security.Cryptography.HashAlgorithm),
289 typeof(byte[]),
290 typeof(int)
291 }, ReturnType = typeof(byte[]))]
292 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "xor", MemberParameters = new object[]
293 {
294 typeof(byte[]),
295 typeof(byte[])
296 }, ReturnType = typeof(byte[]))]
297 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "GetEmptyHash", MemberParameters = new object[] { typeof(global::System.Security.Cryptography.HashAlgorithm) }, ReturnType = typeof(byte[]))]
298 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
299 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
300 public static byte[] Decrypt_OAEP(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] C)
301 {
302 throw null;
303 }
304
305 [global::Cpp2ILInjected.Token(Token = "0x6000172")]
306 [global::Cpp2ILInjected.Address(RVA = "0x1ABC200", Offset = "0x1ABC200", Length = "0xA8")]
307 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
308 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
309 {
310 typeof(global::System.Security.Cryptography.RSA),
311 typeof(string),
312 typeof(byte[])
313 }, ReturnType = typeof(byte[]))]
314 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "SignData", MemberParameters = new object[]
315 {
316 typeof(global::System.IO.Stream),
317 typeof(object)
318 }, ReturnType = typeof(byte[]))]
319 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "SignData", MemberParameters = new object[]
320 {
321 typeof(byte[]),
322 typeof(int),
323 typeof(int),
324 typeof(object)
325 }, ReturnType = typeof(byte[]))]
326 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "SignHash", MemberParameters = new object[]
327 {
328 typeof(byte[]),
329 typeof(string)
330 }, ReturnType = typeof(byte[]))]
331 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "SignHash", MemberParameters = new object[]
332 {
333 typeof(byte[]),
334 typeof(int)
335 }, ReturnType = typeof(byte[]))]
336 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
337 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "Encode_v15", MemberParameters = new object[]
338 {
339 typeof(global::System.Security.Cryptography.HashAlgorithm),
340 typeof(byte[]),
341 typeof(int)
342 }, ReturnType = typeof(byte[]))]
343 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "OS2IP", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
344 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
345 {
346 typeof(byte[]),
347 typeof(int)
348 }, ReturnType = typeof(byte[]))]
349 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
350 public static byte[] Sign_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue)
351 {
352 throw null;
353 }
354
355 [global::Cpp2ILInjected.Token(Token = "0x6000173")]
356 [global::Cpp2ILInjected.Address(RVA = "0x1ABC588", Offset = "0x1ABC588", Length = "0x1C8")]
357 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
358 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSAPKCS1SignatureFormatter), Member = "CreateSignature", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
359 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
360 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "CreateFromName", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.Security.Cryptography.HashAlgorithm))]
361 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
362 {
363 typeof(global::System.Security.Cryptography.RSA),
364 typeof(global::System.Security.Cryptography.HashAlgorithm),
365 typeof(byte[])
366 }, ReturnType = typeof(byte[]))]
367 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
368 internal static byte[] Sign_v15(global::System.Security.Cryptography.RSA rsa, string hashName, byte[] hashValue)
369 {
370 throw null;
371 }
372
373 [global::Cpp2ILInjected.Token(Token = "0x6000174")]
374 [global::Cpp2ILInjected.Address(RVA = "0x1ABCB34", Offset = "0x1ABCB34", Length = "0x80")]
375 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "VerifyData", MemberParameters = new object[]
376 {
377 typeof(byte[]),
378 typeof(object),
379 typeof(byte[])
380 }, ReturnType = typeof(bool))]
381 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "VerifyHash", MemberParameters = new object[]
382 {
383 typeof(byte[]),
384 typeof(string),
385 typeof(byte[])
386 }, ReturnType = typeof(bool))]
387 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSACryptoServiceProvider), Member = "VerifyHash", MemberParameters = new object[]
388 {
389 typeof(byte[]),
390 typeof(int),
391 typeof(byte[])
392 }, ReturnType = typeof(bool))]
393 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
394 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
395 public static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, byte[] signature)
396 {
397 throw null;
398 }
399
400 [global::Cpp2ILInjected.Token(Token = "0x6000175")]
401 [global::Cpp2ILInjected.Address(RVA = "0x1ABCDC8", Offset = "0x1ABCDC8", Length = "0x1DC")]
402 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
403 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.RSAPKCS1SignatureDeformatter), Member = "VerifySignature", MemberParameters = new object[]
404 {
405 typeof(byte[]),
406 typeof(byte[])
407 }, ReturnType = typeof(bool))]
408 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
409 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "CreateFromName", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(global::System.Security.Cryptography.HashAlgorithm))]
410 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
411 {
412 typeof(global::System.Security.Cryptography.RSA),
413 typeof(global::System.Security.Cryptography.HashAlgorithm),
414 typeof(byte[]),
415 typeof(byte[]),
416 typeof(bool)
417 }, ReturnType = typeof(bool))]
418 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
419 internal static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, string hashName, byte[] hashValue, byte[] signature)
420 {
421 throw null;
422 }
423
424 [global::Cpp2ILInjected.Token(Token = "0x6000176")]
425 [global::Cpp2ILInjected.Address(RVA = "0x1ABCBB4", Offset = "0x1ABCBB4", Length = "0x214")]
426 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
427 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
428 {
429 typeof(global::System.Security.Cryptography.RSA),
430 typeof(string),
431 typeof(byte[]),
432 typeof(byte[])
433 }, ReturnType = typeof(bool))]
434 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
435 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "OS2IP", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
436 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
437 {
438 typeof(byte[]),
439 typeof(int)
440 }, ReturnType = typeof(byte[]))]
441 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "Encode_v15", MemberParameters = new object[]
442 {
443 typeof(global::System.Security.Cryptography.HashAlgorithm),
444 typeof(byte[]),
445 typeof(int)
446 }, ReturnType = typeof(byte[]))]
447 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
448 {
449 typeof(global::System.Array),
450 typeof(int),
451 typeof(global::System.Array),
452 typeof(int),
453 typeof(int)
454 }, ReturnType = typeof(void))]
455 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
456 public static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
457 {
458 throw null;
459 }
460
461 [global::Cpp2ILInjected.Token(Token = "0x6000177")]
462 [global::Cpp2ILInjected.Address(RVA = "0x1ABC2A8", Offset = "0x1ABC2A8", Length = "0x2E0")]
463 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
464 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
465 {
466 typeof(global::System.Security.Cryptography.RSA),
467 typeof(global::System.Security.Cryptography.HashAlgorithm),
468 typeof(byte[])
469 }, ReturnType = typeof(byte[]))]
470 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
471 {
472 typeof(global::System.Security.Cryptography.RSA),
473 typeof(global::System.Security.Cryptography.HashAlgorithm),
474 typeof(byte[]),
475 typeof(byte[]),
476 typeof(bool)
477 }, ReturnType = typeof(bool))]
478 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
479 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptoConfig), Member = "MapNameToOID", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
480 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
481 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptoConfig), Member = "EncodeOID", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(byte[]))]
482 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
483 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = "Add", MemberParameters = new object[] { typeof(ASN1) }, ReturnType = typeof(ASN1))]
484 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ASN1), Member = ".ctor", MemberParameters = new object[]
485 {
486 typeof(byte),
487 typeof(byte[])
488 }, ReturnType = typeof(void))]
489 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
490 {
491 typeof(global::System.Array),
492 typeof(int),
493 typeof(global::System.Array),
494 typeof(int),
495 typeof(int)
496 }, ReturnType = typeof(void))]
497 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Math), Member = "Max", MemberParameters = new object[]
498 {
499 typeof(int),
500 typeof(int)
501 }, ReturnType = typeof(int))]
502 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
503 {
504 typeof(string),
505 typeof(string)
506 }, ReturnType = typeof(string))]
507 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
508 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 19)]
509 public static byte[] Encode_v15(global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, int emLength)
510 {
511 throw null;
512 }
513
514 [global::Cpp2ILInjected.Token(Token = "0x6000178")]
515 [global::Cpp2ILInjected.Address(RVA = "0x1ABBD2C", Offset = "0x1ABBD2C", Length = "0x1E4")]
516 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
517 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Encrypt_OAEP", MemberParameters = new object[]
518 {
519 typeof(global::System.Security.Cryptography.RSA),
520 typeof(global::System.Security.Cryptography.HashAlgorithm),
521 typeof(global::System.Security.Cryptography.RandomNumberGenerator),
522 typeof(byte[])
523 }, ReturnType = typeof(byte[]))]
524 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Decrypt_OAEP", MemberParameters = new object[]
525 {
526 typeof(global::System.Security.Cryptography.RSA),
527 typeof(global::System.Security.Cryptography.HashAlgorithm),
528 typeof(byte[])
529 }, ReturnType = typeof(byte[]))]
530 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.PKCS1MaskGenerationMethod), Member = "GenerateMask", MemberParameters = new object[]
531 {
532 typeof(byte[]),
533 typeof(int)
534 }, ReturnType = typeof(byte[]))]
535 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
536 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS1), Member = "I2OSP", MemberParameters = new object[]
537 {
538 typeof(int),
539 typeof(int)
540 }, ReturnType = typeof(byte[]))]
541 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Buffer), Member = "BlockCopy", MemberParameters = new object[]
542 {
543 typeof(global::System.Array),
544 typeof(int),
545 typeof(global::System.Array),
546 typeof(int),
547 typeof(int)
548 }, ReturnType = typeof(void))]
549 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.HashAlgorithm), Member = "ComputeHash", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(byte[]))]
550 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.OverflowException), Member = ".ctor", ReturnType = typeof(void))]
551 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
552 public static byte[] MGF1(global::System.Security.Cryptography.HashAlgorithm hash, byte[] mgfSeed, int maskLen)
553 {
554 throw null;
555 }
556
557 [global::Cpp2ILInjected.Token(Token = "0x6000179")]
558 [global::Cpp2ILInjected.Address(RVA = "0x1ABC750", Offset = "0x1ABC750", Length = "0x3E4")]
559 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
560 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Sign_v15", MemberParameters = new object[]
561 {
562 typeof(global::System.Security.Cryptography.RSA),
563 typeof(string),
564 typeof(byte[])
565 }, ReturnType = typeof(byte[]))]
566 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PKCS1), Member = "Verify_v15", MemberParameters = new object[]
567 {
568 typeof(global::System.Security.Cryptography.RSA),
569 typeof(string),
570 typeof(byte[]),
571 typeof(byte[])
572 }, ReturnType = typeof(bool))]
573 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
574 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::<PrivateImplementationDetails>), Member = "ComputeStringHash", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(uint))]
575 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Equals", MemberParameters = new object[]
576 {
577 typeof(string),
578 typeof(string)
579 }, ReturnType = typeof(bool))]
580 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.SHA1), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.SHA1))]
581 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MD2), Member = "Create", ReturnType = typeof(MD2))]
582 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.MD5), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.MD5))]
583 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.SHA384), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.SHA384))]
584 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.RIPEMD160), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.RIPEMD160))]
585 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.SHA256), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.SHA256))]
586 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MD4), Member = "Create", ReturnType = typeof(MD4))]
587 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.SHA512), Member = "Create", ReturnType = typeof(global::System.Security.Cryptography.SHA512))]
588 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Activator), Member = "CreateInstance", MemberParameters = new object[] { typeof(global::System.Type) }, ReturnType = typeof(object))]
589 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
590 {
591 typeof(string),
592 typeof(string)
593 }, ReturnType = typeof(string))]
594 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Security.Cryptography.CryptographicException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
595 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 29)]
596 internal static global::System.Security.Cryptography.HashAlgorithm CreateFromName(string name)
597 {
598 throw null;
599 }
600
601 // Note: this type is marked as 'beforefieldinit'.
602 [global::Cpp2ILInjected.Token(Token = "0x600017A")]
603 [global::Cpp2ILInjected.Address(RVA = "0x1ABD084", Offset = "0x1ABD084", Length = "0x150")]
604 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
605 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
606 {
607 typeof(global::System.Array),
608 typeof(global::System.RuntimeFieldHandle)
609 }, ReturnType = typeof(void))]
610 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
611 static PKCS1()
612 {
613 throw null;
614 }
615
616 [global::Cpp2ILInjected.Token(Token = "0x4000153")]
617 private static byte[] emptySHA1;
618
619 [global::Cpp2ILInjected.Token(Token = "0x4000154")]
620 private static byte[] emptySHA256;
621
622 [global::Cpp2ILInjected.Token(Token = "0x4000155")]
623 private static byte[] emptySHA384;
624
625 [global::Cpp2ILInjected.Token(Token = "0x4000156")]
626 private static byte[] emptySHA512;
627 }
628}
class f__AnonymousType0<< Count > j__TPar
static byte[] xor(byte[] array1, byte[] array2)
Definition PKCS1.cs:40
static byte[] RSADP(global::System.Security.Cryptography.RSA rsa, byte[] c)
Definition PKCS1.cs:193
static byte[] Sign_v15(global::System.Security.Cryptography.RSA rsa, string hashName, byte[] hashValue)
Definition PKCS1.cs:368
static bool Compare(byte[] array1, byte[] array2)
Definition PKCS1.cs:17
static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, byte[] signature)
Definition PKCS1.cs:395
static byte[] I2OSP(int x, int size)
Definition PKCS1.cs:86
static byte[] Decrypt_OAEP(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] C)
Definition PKCS1.cs:300
static byte[] MGF1(global::System.Security.Cryptography.HashAlgorithm hash, byte[] mgfSeed, int maskLen)
Definition PKCS1.cs:552
static byte[] OS2IP(byte[] x)
Definition PKCS1.cs:175
static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
Definition PKCS1.cs:456
static byte[] RSAVP1(global::System.Security.Cryptography.RSA rsa, byte[] s)
Definition PKCS1.cs:211
static byte[] RSASP1(global::System.Security.Cryptography.RSA rsa, byte[] m)
Definition PKCS1.cs:202
static bool Verify_v15(global::System.Security.Cryptography.RSA rsa, string hashName, byte[] hashValue, byte[] signature)
Definition PKCS1.cs:419
static byte[] Encode_v15(global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue, int emLength)
Definition PKCS1.cs:509
static byte[] GetEmptyHash(global::System.Security.Cryptography.HashAlgorithm hash)
Definition PKCS1.cs:64
static byte[] Encrypt_OAEP(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, global::System.Security.Cryptography.RandomNumberGenerator rng, byte[] M)
Definition PKCS1.cs:256
static byte[] I2OSP(byte[] x, int size)
Definition PKCS1.cs:130
static global::System.Security.Cryptography.HashAlgorithm CreateFromName(string name)
Definition PKCS1.cs:596
static byte[] RSAEP(global::System.Security.Cryptography.RSA rsa, byte[] m)
Definition PKCS1.cs:184
static byte[] Sign_v15(global::System.Security.Cryptography.RSA rsa, global::System.Security.Cryptography.HashAlgorithm hash, byte[] hashValue)
Definition PKCS1.cs:350