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
TripleDESTransform.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200031A RID: 794
8 {
9 // Token: 0x06001AEF RID: 6895 RVA: 0x0003A27C File Offset: 0x0003847C
10 public TripleDESTransform(TripleDES algo, bool encryption, byte[] key, byte[] iv)
11 {
12 int num = 1;
13 base..ctor(algo, encryption, iv);
14 byte[] strongKey;
15 if (key == null)
16 {
18 }
19 if (num == 0)
20 {
21 }
22 bool flag = TripleDES.IsWeakKey(strongKey);
23 DES des = DES.Create();
24 }
25
26 // Token: 0x06001AF0 RID: 6896 RVA: 0x0003A2C8 File Offset: 0x000384C8
27 protected override void ECB(byte[] input, byte[] output)
28 {
29 if (!true)
30 {
31 }
32 bool encrypt = this.encrypt;
33 if (encrypt)
34 {
35 this.E1.ProcessBlock(output, output);
36 this.D2.ProcessBlock(output, output);
37 return;
38 }
39 this.D1.ProcessBlock(output, output);
40 this.E2.ProcessBlock(output, output);
41 if (!encrypt)
42 {
43 }
44 }
45
46 // Token: 0x06001AF1 RID: 6897 RVA: 0x0003A31C File Offset: 0x0003851C
47 internal static byte[] GetStrongKey()
48 {
49 if (!true)
50 {
51 }
52 byte[] array = KeyBuilder.Key(1073741824);
53 bool flag = TripleDES.IsWeakKey(array);
54 return array;
55 }
56
57 // Token: 0x04000DB5 RID: 3509
59
60 // Token: 0x04000DB6 RID: 3510
62
63 // Token: 0x04000DB7 RID: 3511
65
66 // Token: 0x04000DB8 RID: 3512
68
69 // Token: 0x04000DB9 RID: 3513
71
72 // Token: 0x04000DBA RID: 3514
74 }
75}
class f__AnonymousType0<< Count > j__TPar
static byte[] Key(int size)
Definition KeyBuilder.cs:38
void ProcessBlock(byte[] input, byte[] output)
static new DES Create()
Definition DES.cs:73
override void ECB(byte[] input, byte[] output)
TripleDESTransform(TripleDES algo, bool encryption, byte[] key, byte[] iv)
static bool IsWeakKey(byte[] rgbKey)
Definition TripleDES.cs:82