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.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Cpp2IlInjected
;
4
5
namespace
System.Security.Cryptography
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
{
14
this.PaddingValue
=
PaddingMode
.PKCS7;
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
{
48
this.KeyValue
=
obj
;
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 = 0
L
;
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
}
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.KeySizes
Definition
KeySizes.cs:9
System.Security.Cryptography.SymmetricAlgorithm.KeyValue
byte[] KeyValue
Definition
SymmetricAlgorithm.cs:309
System.Security.Cryptography.SymmetricAlgorithm
Definition
SymmetricAlgorithm.cs:10
System.Security.Cryptography.TripleDES.s_legalKeySizes
static KeySizes[] s_legalKeySizes
Definition
TripleDES.cs:117
System.Security.Cryptography.TripleDES.TripleDES
TripleDES()
Definition
TripleDES.cs:12
System.Security.Cryptography.TripleDES.Key
override byte[] Key
Definition
TripleDES.cs:24
System.Security.Cryptography.TripleDES.Create
static new TripleDES Create(string str)
Definition
TripleDES.cs:69
System.Security.Cryptography.TripleDES.s_legalBlockSizes
static KeySizes[] s_legalBlockSizes
Definition
TripleDES.cs:114
System.Security.Cryptography.TripleDES.IsWeakKey
static bool IsWeakKey(byte[] rgbKey)
Definition
TripleDES.cs:82
System.Security.Cryptography.TripleDES.TripleDES
static TripleDES()
Definition
TripleDES.cs:109
System.Security.Cryptography.TripleDES.EqualBytes
static bool EqualBytes(byte[] rgbKey, int start1, int start2, int count)
Definition
TripleDES.cs:94
System.Security.Cryptography.TripleDES.Create
static new TripleDES Create()
Definition
TripleDES.cs:63
System.Security.Cryptography.TripleDES.IsLegalKeySize
static bool IsLegalKeySize(byte[] rgbKey)
Definition
TripleDES.cs:102
System.Security.Cryptography.TripleDES
Definition
TripleDES.cs:10
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Security.Cryptography.PaddingMode
PaddingMode
Definition
PaddingMode.cs:10
System.Security.Cryptography
Definition
Aes.cs:5
System.ExceptionArgument.value
@ value
System.ExceptionArgument.obj
@ obj
System.ExceptionArgument.count
@ count
System.ExceptionArgument.array
@ array
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
TripleDES.cs
Generated by
1.10.0