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
DES.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020002D4 RID: 724
8 [ComVisible(true)]
9 public abstract class DES : SymmetricAlgorithm
10 {
11 // Token: 0x06001866 RID: 6246 RVA: 0x00034228 File Offset: 0x00032428
12 protected DES()
13 {
15 if (64 == 0)
16 {
17 }
18 }
19
20 // Token: 0x17000298 RID: 664
21 // (get) Token: 0x06001867 RID: 6247 RVA: 0x00034248 File Offset: 0x00032448
22 // (set) Token: 0x06001868 RID: 6248 RVA: 0x00034288 File Offset: 0x00032488
23 public override byte[] Key
24 {
25 get
26 {
27 if (this.KeyValue == null)
28 {
29 bool flag = DES.IsWeakKey(this.KeyValue);
30 bool flag2 = DES.IsSemiWeakKey(this.KeyValue);
31 byte[] keyValue = this.KeyValue;
32 }
33 object obj;
34 if (obj == null || obj != null)
35 {
36 }
37 throw new InvalidCastException();
38 }
39 set
40 {
41 if (value != null)
42 {
43 if (!true)
44 {
45 }
46 bool flag = DES.IsWeakKey(value);
47 if (!true)
48 {
49 }
51 object obj;
52 if (obj != null)
53 {
54 if (obj != null)
55 {
57 if (obj != null)
58 {
59 goto IL_002D;
60 }
61 }
62 throw new InvalidCastException();
63 }
64 IL_002D:
66 return;
67 }
68 string resourceString = Environment.GetResourceString("Specified key is not a valid size for this algorithm.");
69 }
70 }
71
72 // Token: 0x06001869 RID: 6249 RVA: 0x0000207A File Offset: 0x0000027A
73 public new static DES Create()
74 {
75 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
76 }
77
78 // Token: 0x0600186A RID: 6250 RVA: 0x000342E4 File Offset: 0x000324E4
79 public new static DES Create(string algName)
80 {
81 if (!true)
82 {
83 }
84 object obj;
85 if (obj != null)
86 {
87 }
88 throw new InvalidCastException();
89 }
90
91 // Token: 0x0600186B RID: 6251 RVA: 0x000342FC File Offset: 0x000324FC
92 public static bool IsWeakKey(byte[] rgbKey)
93 {
94 if (!true)
95 {
96 }
97 return true;
98 }
99
100 // Token: 0x0600186C RID: 6252 RVA: 0x00034334 File Offset: 0x00032534
101 public static bool IsSemiWeakKey(byte[] rgbKey)
102 {
103 if (!true)
104 {
105 }
106 return true;
107 }
108
109 // Token: 0x0600186D RID: 6253 RVA: 0x00034374 File Offset: 0x00032574
110 private static bool IsLegalKeySize(byte[] rgbKey)
111 {
112 return true;
113 }
114
115 // Token: 0x0600186E RID: 6254 RVA: 0x0000207A File Offset: 0x0000027A
116 private static ulong QuadWordFromBigEndian(byte[] block)
117 {
118 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
119 }
120
121 // Token: 0x0600186F RID: 6255 RVA: 0x00034384 File Offset: 0x00032584
122 // Note: this type is marked as 'beforefieldinit'.
123 static DES()
124 {
125 }
126
127 // Token: 0x04000CA3 RID: 3235
128 private static KeySizes[] s_legalBlockSizes;
129
130 // Token: 0x04000CA4 RID: 3236
131 private static KeySizes[] s_legalKeySizes;
132 }
133}
class f__AnonymousType0<< Count > j__TPar
static string GetResourceString(string key)
static new DES Create()
Definition DES.cs:73
static bool IsLegalKeySize(byte[] rgbKey)
Definition DES.cs:110
override byte[] Key
Definition DES.cs:24
static KeySizes[] s_legalBlockSizes
Definition DES.cs:128
static ulong QuadWordFromBigEndian(byte[] block)
Definition DES.cs:116
static new DES Create(string algName)
Definition DES.cs:79
static bool IsWeakKey(byte[] rgbKey)
Definition DES.cs:92
static KeySizes[] s_legalKeySizes
Definition DES.cs:131
static bool IsSemiWeakKey(byte[] rgbKey)
Definition DES.cs:101