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
DESCryptoServiceProvider.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
System.Security.Cryptography
5
{
6
// Token: 0x020002D5 RID: 725
7
[
ComVisible
(
true
)]
8
public
sealed
class
DESCryptoServiceProvider
:
DES
9
{
10
// Token: 0x06001870 RID: 6256 RVA: 0x00034398 File Offset: 0x00032598
11
public
DESCryptoServiceProvider
()
12
{
13
if
(!
true
)
14
{
15
}
16
base
..ctor();
17
if
(!
true
)
18
{
19
}
20
long
num = 0
L
;
21
bool
flag =
Utils
.
HasAlgorithm
(26113, (
int
)num);
22
this.FeedbackSizeValue
= 8;
23
}
24
25
// Token: 0x06001871 RID: 6257 RVA: 0x000343D4 File Offset: 0x000325D4
26
public
override
ICryptoTransform
CreateEncryptor
(
byte
[]
rgbKey
,
byte
[]
rgbIV
)
27
{
28
if
(
", HasRightShoulderButton="
==
null
)
29
{
30
}
31
bool
flag =
DES
.
IsWeakKey
(
rgbKey
);
32
if
(
", HasRightShoulderButton="
==
null
)
33
{
34
}
35
bool
flag2
=
DES
.
IsSemiWeakKey
(
rgbKey
);
36
return
"Specified key is a known weak key for '{0}' and cannot be used."
;
37
}
38
39
// Token: 0x06001872 RID: 6258 RVA: 0x00034410 File Offset: 0x00032610
40
public
override
ICryptoTransform
CreateDecryptor
(
byte
[]
rgbKey
,
byte
[]
rgbIV
)
41
{
42
if
(!
true
)
43
{
44
}
45
bool
flag =
DES
.
IsWeakKey
(
rgbKey
);
46
if
(!
true
)
47
{
48
}
49
bool
flag2
=
DES
.
IsSemiWeakKey
(
rgbKey
);
50
return
"Specified key is a known weak key for '{0}' and cannot be used."
;
51
}
52
53
// Token: 0x06001873 RID: 6259 RVA: 0x00034444 File Offset: 0x00032644
54
public
override
void
GenerateKey
()
55
{
56
if
(!
true
)
57
{
58
}
59
RNGCryptoServiceProvider
staticRandomNumberGenerator
=
Utils
.
StaticRandomNumberGenerator
;
60
byte
[]
keyValue
= this.
KeyValue
;
61
bool
flag =
DES
.
IsWeakKey
(this.
KeyValue
);
62
bool
flag2
=
DES
.
IsSemiWeakKey
(this.
KeyValue
);
63
}
64
65
// Token: 0x06001874 RID: 6260 RVA: 0x00034480 File Offset: 0x00032680
66
public
override
void
GenerateIV
()
67
{
68
if
(!
true
)
69
{
70
}
71
RNGCryptoServiceProvider
staticRandomNumberGenerator
=
Utils
.
StaticRandomNumberGenerator
;
72
byte
[]
ivvalue
= this.
IVValue
;
73
}
74
}
75
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Security.Cryptography.DESCryptoServiceProvider.GenerateKey
override void GenerateKey()
Definition
DESCryptoServiceProvider.cs:54
System.Security.Cryptography.DESCryptoServiceProvider.DESCryptoServiceProvider
DESCryptoServiceProvider()
Definition
DESCryptoServiceProvider.cs:11
System.Security.Cryptography.DESCryptoServiceProvider.GenerateIV
override void GenerateIV()
Definition
DESCryptoServiceProvider.cs:66
System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
Definition
DESCryptoServiceProvider.cs:26
System.Security.Cryptography.DESCryptoServiceProvider.CreateDecryptor
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
Definition
DESCryptoServiceProvider.cs:40
System.Security.Cryptography.DESCryptoServiceProvider
Definition
DESCryptoServiceProvider.cs:9
System.Security.Cryptography.DES.IsWeakKey
static bool IsWeakKey(byte[] rgbKey)
Definition
DES.cs:92
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.RNGCryptoServiceProvider
Definition
RNGCryptoServiceProvider.cs:10
System.Security.Cryptography.SymmetricAlgorithm.KeyValue
byte[] KeyValue
Definition
SymmetricAlgorithm.cs:309
System.Security.Cryptography.SymmetricAlgorithm.IVValue
byte[] IVValue
Definition
SymmetricAlgorithm.cs:306
System.Security.Cryptography.Utils.HasAlgorithm
static bool HasAlgorithm(int dwCalg, int dwKeySize)
Definition
Utils.cs:71
System.Security.Cryptography.Utils.StaticRandomNumberGenerator
static RNGCryptoServiceProvider StaticRandomNumberGenerator
Definition
Utils.cs:18
System.Security.Cryptography.Utils
Definition
Utils.cs:8
System.Security.Cryptography.ICryptoTransform
Definition
ICryptoTransform.cs:9
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Security.Cryptography
Definition
Aes.cs:5
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
DESCryptoServiceProvider.cs
Generated by
1.10.0