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
RC2Transform.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000314 RID: 788
8 {
9 // Token: 0x06001AC4 RID: 6852 RVA: 0x00039B88 File Offset: 0x00037D88
10 public RC2Transform(RC2 rc2Algo, bool encryption, byte[] key, byte[] iv)
12 {
13 if (key == null)
14 {
15 return;
16 }
17 object obj;
18 if (obj != null && obj == null)
19 {
20 throw new InvalidCastException();
21 }
22 if (255 == 0)
23 {
24 }
25 }
26
27 // Token: 0x06001AC5 RID: 6853 RVA: 0x00039BE0 File Offset: 0x00037DE0
28 protected override void ECB(byte[] input, byte[] output)
29 {
30 if (this.encrypt)
31 {
32 ushort[] k = this.K;
33 int num = 20;
34 this.j = num;
35 this.j = num;
36 this.R0 = k;
37 this.R0 = k;
38 return;
39 }
40 ushort[] k2 = this.K;
41 int num2 = 63;
42 this.j = num2;
43 this.R3 = (ushort)num2;
44 this.R1 = (ushort)num2;
45 this.R0 = input;
46 int num3 = 43;
47 this.j = num3;
48 this.R3 = (ushort)num2;
49 this.R3 = (ushort)num2;
50 this.R1 = input;
51 this.j = num3;
52 this.R2 = (ushort)num2;
53 this.R0 = k2;
54 this.R2 = (ushort)num2;
55 this.R0 = input;
56 this.R0 = k2;
57 this.j = num3;
58 ushort r = this.R1;
59 ushort r2 = this.R2;
60 ushort r3 = this.R3;
61 }
62
63 // Token: 0x06001AC6 RID: 6854 RVA: 0x00039CB8 File Offset: 0x00037EB8
64 // Note: this type is marked as 'beforefieldinit'.
65 static RC2Transform()
66 {
67 }
68
69 // Token: 0x04000DA1 RID: 3489
70 private ushort R0;
71
72 // Token: 0x04000DA2 RID: 3490
73 private ushort R1;
74
75 // Token: 0x04000DA3 RID: 3491
76 private ushort R2;
77
78 // Token: 0x04000DA4 RID: 3492
79 private ushort R3;
80
81 // Token: 0x04000DA5 RID: 3493
82 private ushort[] K;
83
84 // Token: 0x04000DA6 RID: 3494
85 private int j;
86
87 // Token: 0x04000DA7 RID: 3495
88 private static readonly byte[] pitable;
89 }
90}
class f__AnonymousType0<< Count > j__TPar
override void ECB(byte[] input, byte[] output)
RC2Transform(RC2 rc2Algo, bool encryption, byte[] key, byte[] iv)