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
ZipCrypto.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6using Ionic.Crc;
7
8namespace Ionic.Zip
9{
10 [global::Cpp2ILInjected.Token(Token = "0x200001A")]
11 internal class ZipCrypto
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x600008C")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1A4784C", Offset = "0x1A4784C", Length = "0xB0")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "ForWrite", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(ZipCrypto))]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "ForRead", MemberParameters = new object[]
17 {
18 typeof(string),
20 }, ReturnType = typeof(ZipCrypto))]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
23 {
26 }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = ".ctor", ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
30 private ZipCrypto()
31 {
32 throw null;
33 }
34
35 [global::Cpp2ILInjected.Token(Token = "0x600008D")]
36 [global::Cpp2ILInjected.Address(RVA = "0x1A478FC", Offset = "0x1A478FC", Length = "0xA8")]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipEntry), Member = "WriteSecurityMetadata", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = ".ctor", ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "InitCipher", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BadPasswordException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
43 public static ZipCrypto ForWrite(string password)
44 {
45 throw null;
46 }
47
48 [global::Cpp2ILInjected.Token(Token = "0x600008E")]
49 [global::Cpp2ILInjected.Address(RVA = "0x1A47A38", Offset = "0x1A47A38", Length = "0x16C")]
50 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipEntry), Member = "SetupCryptoForExtract", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = ".ctor", ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "InitCipher", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipEntry), Member = "ReadWeakEncryptionHeader", MemberParameters = new object[]
56 {
58 typeof(byte[])
59 }, ReturnType = typeof(int))]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "DecryptMessage", MemberParameters = new object[]
61 {
62 typeof(byte[]),
63 typeof(int)
64 }, ReturnType = typeof(byte[]))]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BadPasswordException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
67 public static ZipCrypto ForRead(string password, ZipEntry e)
68 {
69 throw null;
70 }
71
72 [global::Cpp2ILInjected.Token(Token = "0x1700001B")]
73 private byte MagicByte
74 {
75 [global::Cpp2ILInjected.Token(Token = "0x600008F")]
76 [global::Cpp2ILInjected.Address(RVA = "0x1A47DB4", Offset = "0x1A47DB4", Length = "0x24")]
77 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
78 get
79 {
80 throw null;
81 }
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x6000090")]
85 [global::Cpp2ILInjected.Address(RVA = "0x1A47C58", Offset = "0x1A47C58", Length = "0x15C")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "ForRead", MemberParameters = new object[]
88 {
89 typeof(string),
91 }, ReturnType = typeof(ZipCrypto))]
92 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCipherStream), Member = "Read", MemberParameters = new object[]
93 {
94 typeof(byte[]),
95 typeof(int),
96 typeof(int)
97 }, ReturnType = typeof(int))]
98 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "UpdateKeys", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
102 {
103 typeof(string),
104 typeof(string)
105 }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
107 public byte[] DecryptMessage(byte[] cipherText, int length)
108 {
109 throw null;
110 }
111
112 [global::Cpp2ILInjected.Token(Token = "0x6000091")]
113 [global::Cpp2ILInjected.Address(RVA = "0x1A47E44", Offset = "0x1A47E44", Length = "0x158")]
114 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
115 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCipherStream), Member = "Write", MemberParameters = new object[]
116 {
117 typeof(byte[]),
118 typeof(int),
119 typeof(int)
120 }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipEntry), Member = "WriteSecurityMetadata", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
122 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "UpdateKeys", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
126 {
127 typeof(string),
128 typeof(string)
129 }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
131 public byte[] EncryptMessage(byte[] plainText, int length)
132 {
133 throw null;
134 }
135
136 [global::Cpp2ILInjected.Token(Token = "0x6000092")]
137 [global::Cpp2ILInjected.Address(RVA = "0x1A479A4", Offset = "0x1A479A4", Length = "0x94")]
138 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
139 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "ForWrite", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(ZipCrypto))]
140 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "ForRead", MemberParameters = new object[]
141 {
142 typeof(string),
143 typeof(ZipEntry)
144 }, ReturnType = typeof(ZipCrypto))]
145 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SharedUtilities), Member = "StringToByteArray", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(byte[]))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZipCrypto), Member = "UpdateKeys", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
148 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
149 public void InitCipher(string passphrase)
150 {
151 throw null;
152 }
153
154 [global::Cpp2ILInjected.Token(Token = "0x6000093")]
155 [global::Cpp2ILInjected.Address(RVA = "0x1A47DD8", Offset = "0x1A47DD8", Length = "0x6C")]
156 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
157 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "DecryptMessage", MemberParameters = new object[]
158 {
159 typeof(byte[]),
160 typeof(int)
161 }, ReturnType = typeof(byte[]))]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "EncryptMessage", MemberParameters = new object[]
163 {
164 typeof(byte[]),
165 typeof(int)
166 }, ReturnType = typeof(byte[]))]
167 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "InitCipher", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "ComputeCrc32", MemberParameters = new object[]
170 {
171 typeof(int),
172 typeof(byte)
173 }, ReturnType = typeof(int))]
174 private void UpdateKeys(byte byteValue)
175 {
176 throw null;
177 }
178
179 [global::Cpp2ILInjected.Token(Token = "0x4000044")]
180 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
181 private uint[] _Keys;
182
183 [global::Cpp2ILInjected.Token(Token = "0x4000045")]
184 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
185 private CRC32 crc32;
186 }
187}
class f__AnonymousType0<< Count > j__TPar
static ZipCrypto ForWrite(string password)
Definition ZipCrypto.cs:43
void UpdateKeys(byte byteValue)
Definition ZipCrypto.cs:174
void InitCipher(string passphrase)
Definition ZipCrypto.cs:149
static ZipCrypto ForRead(string password, ZipEntry e)
Definition ZipCrypto.cs:67
byte[] DecryptMessage(byte[] cipherText, int length)
Definition ZipCrypto.cs:107
byte[] EncryptMessage(byte[] plainText, int length)
Definition ZipCrypto.cs:131