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
TripleDES.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000309 RID: 777
8 [ComVisible(true)]
9 public abstract class TripleDES : SymmetricAlgorithm
10 {
11 // Token: 0x06001A44 RID: 6724 RVA: 0x000385F0 File Offset: 0x000367F0
12 protected TripleDES()
13 {
15 if (2 == 0)
16 {
17 }
18 }
19
20 // Token: 0x170002DB RID: 731
21 // (get) Token: 0x06001A45 RID: 6725 RVA: 0x00038610 File Offset: 0x00036810
22 // (set) Token: 0x06001A46 RID: 6726 RVA: 0x00038644 File Offset: 0x00036844
23 public override byte[] Key
24 {
25 get
26 {
27 if (this.KeyValue == null)
28 {
29 bool flag = TripleDES.IsWeakKey(this.KeyValue);
30 byte[] keyValue = this.KeyValue;
31 }
32 object obj;
33 if (obj == null || obj != null)
34 {
35 }
36 throw new InvalidCastException();
37 }
38 set
39 {
40 if (value != null)
41 {
42 bool flag = TripleDES.IsWeakKey(value);
43 object obj;
44 if (obj != null)
45 {
46 if (obj != null)
47 {
49 if (obj != null)
50 {
51 return;
52 }
53 }
54 throw new InvalidCastException();
55 }
56 return;
57 }
58 string resourceString = Environment.GetResourceString("Specified key is not a valid size for this algorithm.");
59 }
60 }
61
62 // Token: 0x06001A47 RID: 6727 RVA: 0x0000207A File Offset: 0x0000027A
63 public new static TripleDES Create()
64 {
65 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
66 }
67
68 // Token: 0x06001A48 RID: 6728 RVA: 0x0003868C File Offset: 0x0003688C
69 public new static TripleDES Create(string str)
70 {
71 if (!true)
72 {
73 }
74 object obj;
75 if (obj != null)
76 {
77 }
78 throw new InvalidCastException();
79 }
80
81 // Token: 0x06001A49 RID: 6729 RVA: 0x000386A4 File Offset: 0x000368A4
82 public static bool IsWeakKey(byte[] rgbKey)
83 {
84 if (!true)
85 {
86 }
87 long num = 0L;
88 byte[] array;
89 bool flag = TripleDES.EqualBytes(array, (int)num, 8, 8);
90 return true;
91 }
92
93 // Token: 0x06001A4A RID: 6730 RVA: 0x000386DC File Offset: 0x000368DC
94 private static bool EqualBytes(byte[] rgbKey, int start1, int start2, int count)
95 {
96 string resourceString = Environment.GetResourceString("Value was invalid.");
97 string resourceString2 = Environment.GetResourceString("Non-negative number required.");
98 return "start1" != null;
99 }
100
101 // Token: 0x06001A4B RID: 6731 RVA: 0x00038714 File Offset: 0x00036914
102 private static bool IsLegalKeySize(byte[] rgbKey)
103 {
104 return true;
105 }
106
107 // Token: 0x06001A4C RID: 6732 RVA: 0x00038724 File Offset: 0x00036924
108 // Note: this type is marked as 'beforefieldinit'.
109 static TripleDES()
110 {
111 }
112
113 // Token: 0x04000D34 RID: 3380
114 private static KeySizes[] s_legalBlockSizes;
115
116 // Token: 0x04000D35 RID: 3381
117 private static KeySizes[] s_legalKeySizes;
118 }
119}
class f__AnonymousType0<< Count > j__TPar
static string GetResourceString(string key)
static new TripleDES Create(string str)
Definition TripleDES.cs:69
static bool IsWeakKey(byte[] rgbKey)
Definition TripleDES.cs:82
static bool EqualBytes(byte[] rgbKey, int start1, int start2, int count)
Definition TripleDES.cs:94
static new TripleDES Create()
Definition TripleDES.cs:63
static bool IsLegalKeySize(byte[] rgbKey)
Definition TripleDES.cs:102