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
BlowFish.cs
Go to the documentation of this file.
1using System;
6using Terraria.IO;
7
8[global::Cpp2ILInjected.Token(Token = "0x20002DC")]
9public class BlowFish
10{
11 [global::Cpp2ILInjected.Token(Token = "0x60010D0")]
12 [global::Cpp2ILInjected.Address(RVA = "0xA4F29C", Offset = "0xA4F29C", Length = "0x6C")]
13 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player_OldMobile), Member = ".cctor", ReturnType = typeof(void))]
14 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile_OldMobile), Member = ".cctor", ReturnType = typeof(void))]
15 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
16 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
17 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
18 public BlowFish()
19 {
20 throw null;
21 }
22
23 [global::Cpp2ILInjected.Token(Token = "0x60010D1")]
24 [global::Cpp2ILInjected.Address(RVA = "0xA4F308", Offset = "0xA4F308", Length = "0x68")]
25 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
26 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
27 private void ROUND(ref BlowFish.aword a, ref BlowFish.aword b, int n)
28 {
29 throw null;
30 }
31
32 [global::Cpp2ILInjected.Token(Token = "0x60010D2")]
33 [global::Cpp2ILInjected.Address(RVA = "0xA4F370", Offset = "0xA4F370", Length = "0x448")]
34 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BlowFish), Member = "Decode", MemberParameters = new object[]
36 {
37 typeof(byte*),
38 typeof(byte*),
39 typeof(uint)
40 }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
42 private unsafe void Decipher(uint* xl, uint* xr)
43 {
44 throw null;
45 }
46
47 [global::Cpp2ILInjected.Token(Token = "0x60010D3")]
48 [global::Cpp2ILInjected.Address(RVA = "0xA4F7B8", Offset = "0xA4F7B8", Length = "0x464")]
49 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
50 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BlowFish), Member = "Initialize", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
52 private unsafe void Encipher(uint* xl, uint* xr)
53 {
54 throw null;
55 }
56
57 [global::Cpp2ILInjected.Token(Token = "0x60010D4")]
58 [global::Cpp2ILInjected.Address(RVA = "0xA4FC1C", Offset = "0xA4FC1C", Length = "0x200")]
59 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player_OldMobile), Member = "DecryptPlayerData", MemberParameters = new object[]
61 {
62 typeof(long),
63 typeof(long)
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile_OldMobile), Member = "DecryptWorldData", MemberParameters = new object[]
66 {
67 typeof(long),
68 typeof(long)
69 }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BlowFish), Member = "Encipher", MemberParameters = new object[]
72 {
73 typeof(uint*),
74 typeof(uint*)
75 }, ReturnType = typeof(void))]
76 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
77 public unsafe void Initialize(byte[] key)
78 {
79 throw null;
80 }
81
82 [global::Cpp2ILInjected.Token(Token = "0x60010D5")]
83 [global::Cpp2ILInjected.Address(RVA = "0xA4FE1C", Offset = "0xA4FE1C", Length = "0x18")]
84 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
85 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
86 private uint GetOutputLength(uint lInputLong)
87 {
88 throw null;
89 }
90
91 [global::Cpp2ILInjected.Token(Token = "0x60010D6")]
92 [global::Cpp2ILInjected.Address(RVA = "0xA4FE34", Offset = "0xA4FE34", Length = "0xA0")]
93 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
94 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player_OldMobile), Member = "DecryptPlayerData", MemberParameters = new object[]
95 {
96 typeof(long),
97 typeof(long)
98 }, ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile_OldMobile), Member = "DecryptWorldData", MemberParameters = new object[]
100 {
101 typeof(long),
102 typeof(long)
103 }, ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BlowFish), Member = "Decipher", MemberParameters = new object[]
106 {
107 typeof(uint*),
108 typeof(uint*)
109 }, ReturnType = typeof(void))]
110 public unsafe void Decode(byte* pInput, byte* pOutput, uint lSize)
111 {
112 throw null;
113 }
114
115 // Note: this type is marked as 'beforefieldinit'.
116 [global::Cpp2ILInjected.Token(Token = "0x60010D7")]
117 [global::Cpp2ILInjected.Address(RVA = "0xA4FED4", Offset = "0xA4FED4", Length = "0xD0")]
118 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
120 {
121 typeof(Array),
123 }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
125 static BlowFish()
126 {
127 throw null;
128 }
129
130 [global::Cpp2ILInjected.Token(Token = "0x40020B0")]
131 private const int NPASS = 16;
132
133 [global::Cpp2ILInjected.Token(Token = "0x40020B1")]
134 private static uint[] bf_P;
135
136 [global::Cpp2ILInjected.Token(Token = "0x40020B2")]
137 private static uint[] bf_S;
138
139 [global::Cpp2ILInjected.Token(Token = "0x40020B3")]
140 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
141 private uint[] PArray;
142
143 [global::Cpp2ILInjected.Token(Token = "0x40020B4")]
144 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
145 private uint[] SBoxes;
146
147 [global::Cpp2ILInjected.Token(Token = "0x40020B5")]
148 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
149 public bool isInitialized;
150
151 [global::Cpp2ILInjected.Token(Token = "0x20002DD")]
152 [StructLayout(2)]
153 private struct aword
154 {
155 [global::Cpp2ILInjected.Token(Token = "0x40020B6")]
156 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
157 [global::System.Runtime.InteropServices.FieldOffset(0)]
158 public uint dword;
159
160 [FixedBuffer(typeof(byte), 4)]
161 [global::Cpp2ILInjected.Token(Token = "0x40020B7")]
162 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
163 [global::System.Runtime.InteropServices.FieldOffset(0)]
165
166 [global::Cpp2ILInjected.Token(Token = "0x40020B8")]
167 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
168 [global::System.Runtime.InteropServices.FieldOffset(0)]
169 public byte byte3;
170
171 [global::Cpp2ILInjected.Token(Token = "0x40020B9")]
172 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1")]
173 [global::System.Runtime.InteropServices.FieldOffset(1)]
174 public byte byte2;
175
176 [global::Cpp2ILInjected.Token(Token = "0x40020BA")]
177 [global::Cpp2ILInjected.FieldOffset(Offset = "0x2")]
178 [global::System.Runtime.InteropServices.FieldOffset(2)]
179 public byte byte1;
180
181 [global::Cpp2ILInjected.Token(Token = "0x40020BB")]
182 [global::Cpp2ILInjected.FieldOffset(Offset = "0x3")]
183 [global::System.Runtime.InteropServices.FieldOffset(3)]
184 public byte byte0;
185
188 [global::Cpp2ILInjected.Token(Token = "0x20002DE")]
189 [StructLayout(0, Size = 4)]
191 {
192 [global::Cpp2ILInjected.Token(Token = "0x40020BC")]
193 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
194 public byte FixedElementField;
195 }
196 }
197}
class f__AnonymousType0<< Count > j__TPar
bool isInitialized
Definition BlowFish.cs:149
const int NPASS
Definition BlowFish.cs:131
unsafe void Decode(byte *pInput, byte *pOutput, uint lSize)
Definition BlowFish.cs:110
static BlowFish()
Definition BlowFish.cs:125
static uint[] bf_S
Definition BlowFish.cs:137
uint[] PArray
Definition BlowFish.cs:141
uint[] SBoxes
Definition BlowFish.cs:145
static uint[] bf_P
Definition BlowFish.cs:134
unsafe void Decipher(uint *xl, uint *xr)
Definition BlowFish.cs:42
unsafe void Encipher(uint *xl, uint *xr)
Definition BlowFish.cs:52
unsafe void Initialize(byte[] key)
Definition BlowFish.cs:77
BlowFish()
Definition BlowFish.cs:18
uint GetOutputLength(uint lInputLong)
Definition BlowFish.cs:86
void ROUND(ref BlowFish.aword a, ref BlowFish.aword b, int n)
Definition BlowFish.cs:27
BlowFish.aword.< integer > e__FixedBuffer integer
Definition BlowFish.cs:164