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
BlowFish.cs
Go to the documentation of this file.
1using System;
5
6// Token: 0x020002DC RID: 732
7public class BlowFish
8{
9 // Token: 0x060010D0 RID: 4304 RVA: 0x000533F8 File Offset: 0x000515F8
10 public BlowFish()
11 {
12 }
13
14 // Token: 0x060010D1 RID: 4305 RVA: 0x0005340C File Offset: 0x0005160C
15 private void ROUND(BlowFish.aword a, BlowFish.aword b, int n)
16 {
17 uint[] parray = this.PArray;
18 uint[] sboxes = this.SBoxes;
19 byte @byte = b.byte1;
20 byte byte2 = b.byte0;
21 byte byte3 = b.byte2;
22 }
23
24 // Token: 0x060010D2 RID: 4306 RVA: 0x00053440 File Offset: 0x00051640
25 private unsafe void Decipher(uint* xl, uint* xr)
26 {
27 uint[] parray = this.PArray;
28 uint[] sboxes = this.SBoxes;
29 xl->m_value = sboxes;
30 xr->m_value = parray;
31 }
32
33 // Token: 0x060010D3 RID: 4307 RVA: 0x0005346C File Offset: 0x0005166C
34 private unsafe void Encipher(uint* xl, uint* xr)
35 {
36 uint[] parray = this.PArray;
37 uint[] sboxes = this.SBoxes;
38 int num = 256;
39 xr->m_value = (uint)num;
40 xl->m_value = parray;
41 }
42
43 // Token: 0x060010D4 RID: 4308 RVA: 0x0005349C File Offset: 0x0005169C
44 public void Initialize(byte[] key)
45 {
46 int num = 1;
47 uint[] parray = this.PArray;
48 if (num == 0)
49 {
50 }
51 uint[] sboxes = this.SBoxes;
52 uint[] parray2 = this.PArray;
53 uint[] parray3 = this.PArray;
54 uint[] sboxes2 = this.SBoxes;
55 int num2 = 1;
56 this.isInitialized = num2 != 0;
57 }
58
59 // Token: 0x060010D5 RID: 4309 RVA: 0x000021DB File Offset: 0x000003DB
60 private uint GetOutputLength(uint lInputLong)
61 {
62 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
63 }
64
65 // Token: 0x060010D6 RID: 4310 RVA: 0x000534F8 File Offset: 0x000516F8
66 public unsafe void Decode(byte* pInput, byte* pOutput, uint lSize)
67 {
68 if (lSize != 0U)
69 {
70 return;
71 }
72 }
73
74 // Token: 0x060010D7 RID: 4311 RVA: 0x0005350C File Offset: 0x0005170C
75 // Note: this type is marked as 'beforefieldinit'.
76 static BlowFish()
77 {
78 }
79
80 // Token: 0x040020B0 RID: 8368
81 private const int NPASS = 16;
82
83 // Token: 0x040020B1 RID: 8369
84 private static uint[] bf_P;
85
86 // Token: 0x040020B2 RID: 8370
87 private static uint[] bf_S;
88
89 // Token: 0x040020B3 RID: 8371
90 private uint[] PArray;
91
92 // Token: 0x040020B4 RID: 8372
93 private uint[] SBoxes;
94
95 // Token: 0x040020B5 RID: 8373
96 public bool isInitialized;
97
98 // Token: 0x020002DD RID: 733
99 [StructLayout(2)]
100 private struct aword
101 {
102 // Token: 0x040020B6 RID: 8374
103 public uint dword;
104
105 // Token: 0x040020B7 RID: 8375
106 [FixedBuffer(typeof(byte), 4)]
108
109 // Token: 0x040020B8 RID: 8376
110 public byte byte3;
111
112 // Token: 0x040020B9 RID: 8377
113 public byte byte2;
114
115 // Token: 0x040020BA RID: 8378
116 public byte byte1;
117
118 // Token: 0x040020BB RID: 8379
119 public byte byte0;
120
121 // Token: 0x020002DE RID: 734
124 [StructLayout(0, Size = 4)]
126 {
127 // Token: 0x040020BC RID: 8380
128 public byte FixedElementField;
129 }
130 }
131}
class f__AnonymousType0<< Count > j__TPar
bool isInitialized
Definition BlowFish.cs:96
const int NPASS
Definition BlowFish.cs:81
unsafe void Decode(byte *pInput, byte *pOutput, uint lSize)
Definition BlowFish.cs:66
static BlowFish()
Definition BlowFish.cs:76
static uint[] bf_S
Definition BlowFish.cs:87
uint[] PArray
Definition BlowFish.cs:90
void ROUND(BlowFish.aword a, BlowFish.aword b, int n)
Definition BlowFish.cs:15
uint[] SBoxes
Definition BlowFish.cs:93
static uint[] bf_P
Definition BlowFish.cs:84
unsafe void Decipher(uint *xl, uint *xr)
Definition BlowFish.cs:25
void Initialize(byte[] key)
Definition BlowFish.cs:44
unsafe void Encipher(uint *xl, uint *xr)
Definition BlowFish.cs:34
BlowFish()
Definition BlowFish.cs:10
uint GetOutputLength(uint lInputLong)
Definition BlowFish.cs:60
BlowFish.aword.< integer > e__FixedBuffer integer
Definition BlowFish.cs:107