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
X509PalImpl.cs
Go to the documentation of this file.
1using System;
3using System.Text;
6using Mono.Security;
7
8namespace Mono
9{
10 // Token: 0x0200000C RID: 12
11 internal abstract class X509PalImpl
12 {
13 // Token: 0x0600002D RID: 45
14 public abstract X509CertificateImpl Import(byte[] data);
15
16 // Token: 0x0600002E RID: 46
17 public abstract global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl Import(byte[] data, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags);
18
19 // Token: 0x0600002F RID: 47
20 public abstract global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl Import(X509Certificate cert);
21
22 // Token: 0x06000030 RID: 48 RVA: 0x000022C8 File Offset: 0x000004C8
23 private static byte[] PEM(string type, byte[] data)
24 {
26 string text = string.Format("-----BEGIN {0}-----", type);
27 string text2 = string.Format("-----END {0}-----", type);
28 int stringLength = text._stringLength;
29 byte[] array;
30 return array;
31 }
32
33 // Token: 0x06000031 RID: 49 RVA: 0x00002300 File Offset: 0x00000500
34 protected static byte[] ConvertData(byte[] data)
35 {
36 byte[] array;
37 if (true)
38 {
39 array = X509PalImpl.PEM("CERTIFICATE", data);
40 }
41 return array;
42 }
43
44 // Token: 0x06000032 RID: 50 RVA: 0x00002320 File Offset: 0x00000520
45 internal global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl ImportFallback(byte[] data)
46 {
47 if (!true)
48 {
49 }
50 byte[] array = X509PalImpl.ConvertData(data);
51 long num = 0L;
52 if (data != null)
53 {
54 byte value = data.m_value;
55 }
56 if (num == 0L)
57 {
58 }
59 throw new OutOfMemoryException();
60 }
61
62 // Token: 0x06000033 RID: 51 RVA: 0x00002050 File Offset: 0x00000250
63 internal global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl ImportFallback(byte[] data, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
64 {
65 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
66 }
67
68 // Token: 0x17000007 RID: 7
69 // (get) Token: 0x06000034 RID: 52 RVA: 0x00002374 File Offset: 0x00000574
71 {
72 get
73 {
74 }
75 }
76
77 // Token: 0x06000035 RID: 53 RVA: 0x00002384 File Offset: 0x00000584
79 {
80 int num = 1;
81 if (rawData == null || num == 0)
82 {
83 return;
84 }
85 ASN1 asn;
86 byte nTag = asn.m_nTag;
87 ASN1 asn2;
88 byte nTag2 = asn2.m_nTag;
89 ASN1 asn3;
90 byte nTag3 = asn3.m_nTag;
91 ASN1 asn4;
92 byte nTag4 = asn4.m_nTag;
93 ASN1 asn5;
94 byte nTag5 = asn5.m_nTag;
95 ASN1 asn6;
96 byte nTag6 = asn6.m_nTag;
98 ASN1 asn7;
99 if (asn7.m_nTag == 0)
100 {
101 return;
102 }
103 }
104
105 // Token: 0x06000036 RID: 54 RVA: 0x00002404 File Offset: 0x00000604
106 protected X509PalImpl()
107 {
108 }
109
110 // Token: 0x06000037 RID: 55 RVA: 0x00002418 File Offset: 0x00000618
111 // Note: this type is marked as 'beforefieldinit'.
112 static X509PalImpl()
113 {
114 }
115
116 // Token: 0x0400002D RID: 45
117 private static byte[] signedData;
118 }
119}
class f__AnonymousType0<< Count > j__TPar
global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl Import(X509Certificate cert)
static byte[] signedData
static byte[] ConvertData(byte[] data)
global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl ImportFallback(byte[] data, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl Import(byte[] data, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
static X509PalImpl()
bool SupportsLegacyBasicConstraintsExtension
static byte[] PEM(string type, byte[] data)
X509ContentType GetCertContentType(byte[] rawData)
global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl ImportFallback(byte[] data)
X509CertificateImpl Import(byte[] data)
static Encoding ASCII
Definition Encoding.cs:348