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.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Cpp2IlInjected
;
4
5
namespace
System.Security.Cryptography
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
{
14
this.KeySizeValue
= 64;
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
}
50
bool
flag2
=
DES
.
IsSemiWeakKey
(
value
);
51
object
obj
;
52
if
(
obj
!=
null
)
53
{
54
if
(
obj
!=
null
)
55
{
56
this.KeyValue
=
obj
;
57
if
(
obj
!=
null
)
58
{
59
goto
IL_002D
;
60
}
61
}
62
throw
new
InvalidCastException
();
63
}
64
IL_002D
:
65
this.KeySizeValue
= 1;
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Environment.GetResourceString
static string GetResourceString(string key)
Definition
Environment.cs:19
System.Environment
Definition
Environment.cs:17
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.Security.Cryptography.DES.Create
static new DES Create()
Definition
DES.cs:73
System.Security.Cryptography.DES.DES
static DES()
Definition
DES.cs:123
System.Security.Cryptography.DES.IsLegalKeySize
static bool IsLegalKeySize(byte[] rgbKey)
Definition
DES.cs:110
System.Security.Cryptography.DES.Key
override byte[] Key
Definition
DES.cs:24
System.Security.Cryptography.DES.s_legalBlockSizes
static KeySizes[] s_legalBlockSizes
Definition
DES.cs:128
System.Security.Cryptography.DES.QuadWordFromBigEndian
static ulong QuadWordFromBigEndian(byte[] block)
Definition
DES.cs:116
System.Security.Cryptography.DES.Create
static new DES Create(string algName)
Definition
DES.cs:79
System.Security.Cryptography.DES.IsWeakKey
static bool IsWeakKey(byte[] rgbKey)
Definition
DES.cs:92
System.Security.Cryptography.DES.s_legalKeySizes
static KeySizes[] s_legalKeySizes
Definition
DES.cs:131
System.Security.Cryptography.DES.DES
DES()
Definition
DES.cs:12
System.Security.Cryptography.DES.IsSemiWeakKey
static bool IsSemiWeakKey(byte[] rgbKey)
Definition
DES.cs:101
System.Security.Cryptography.DES
Definition
DES.cs:10
System.Security.Cryptography.KeySizes
Definition
KeySizes.cs:9
System.Security.Cryptography.SymmetricAlgorithm.KeyValue
byte[] KeyValue
Definition
SymmetricAlgorithm.cs:309
System.Security.Cryptography.SymmetricAlgorithm
Definition
SymmetricAlgorithm.cs:10
ulong
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Security.Cryptography
Definition
Aes.cs:5
System.ExceptionArgument.value
@ value
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
DES.cs
Generated by
1.10.0