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
TripleDESTransform.cs
Go to the documentation of this file.
1
using
System
;
2
using
Mono.Security.Cryptography
;
3
4
namespace
System.Security.Cryptography
5
{
6
// Token: 0x0200031A RID: 794
7
internal
class
TripleDESTransform
:
SymmetricTransform
8
{
9
// Token: 0x06001AEF RID: 6895 RVA: 0x0003A27C File Offset: 0x0003847C
10
public
TripleDESTransform
(
TripleDES
algo
,
bool
encryption
,
byte
[]
key
,
byte
[]
iv
)
11
{
12
int
num = 1;
13
base
..ctor(
algo
,
encryption
,
iv
);
14
byte
[]
strongKey
;
15
if
(
key
==
null
)
16
{
17
strongKey
=
TripleDESTransform
.
GetStrongKey
();
18
}
19
if
(num == 0)
20
{
21
}
22
bool
flag =
TripleDES
.
IsWeakKey
(
strongKey
);
23
DES
des =
DES
.
Create
();
24
}
25
26
// Token: 0x06001AF0 RID: 6896 RVA: 0x0003A2C8 File Offset: 0x000384C8
27
protected
override
void
ECB
(
byte
[]
input
,
byte
[] output)
28
{
29
if
(!
true
)
30
{
31
}
32
bool
encrypt
= this.
encrypt
;
33
if
(encrypt)
34
{
35
this.
E1
.
ProcessBlock
(output, output);
36
this.
D2
.
ProcessBlock
(output, output);
37
return
;
38
}
39
this.
D1
.
ProcessBlock
(output, output);
40
this.
E2
.
ProcessBlock
(output, output);
41
if
(!
encrypt
)
42
{
43
}
44
}
45
46
// Token: 0x06001AF1 RID: 6897 RVA: 0x0003A31C File Offset: 0x0003851C
47
internal
static
byte
[]
GetStrongKey
()
48
{
49
if
(!
true
)
50
{
51
}
52
byte
[]
array
=
KeyBuilder
.
Key
(1073741824);
53
bool
flag =
TripleDES
.
IsWeakKey
(
array
);
54
return
array
;
55
}
56
57
// Token: 0x04000DB5 RID: 3509
58
private
DESTransform
E1
;
59
60
// Token: 0x04000DB6 RID: 3510
61
private
DESTransform
D2
;
62
63
// Token: 0x04000DB7 RID: 3511
64
private
DESTransform
E3
;
65
66
// Token: 0x04000DB8 RID: 3512
67
private
DESTransform
D1
;
68
69
// Token: 0x04000DB9 RID: 3513
70
private
DESTransform
E2
;
71
72
// Token: 0x04000DBA RID: 3514
73
private
DESTransform
D3
;
74
}
75
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Mono.Security.Cryptography.KeyBuilder.Key
static byte[] Key(int size)
Definition
KeyBuilder.cs:38
Mono.Security.Cryptography.KeyBuilder
Definition
KeyBuilder.cs:8
Mono.Security.Cryptography.SymmetricTransform.encrypt
bool encrypt
Definition
SymmetricTransform.cs:371
Mono.Security.Cryptography.SymmetricTransform.algo
SymmetricAlgorithm algo
Definition
SymmetricTransform.cs:368
Mono.Security.Cryptography.SymmetricTransform
Definition
SymmetricTransform.cs:9
System.Security.Cryptography.DESTransform.ProcessBlock
void ProcessBlock(byte[] input, byte[] output)
Definition
DESTransform.cs:72
System.Security.Cryptography.DESTransform
Definition
DESTransform.cs:8
System.Security.Cryptography.DES.Create
static new DES Create()
Definition
DES.cs:73
System.Security.Cryptography.DES
Definition
DES.cs:10
System.Security.Cryptography.TripleDESTransform.ECB
override void ECB(byte[] input, byte[] output)
Definition
TripleDESTransform.cs:27
System.Security.Cryptography.TripleDESTransform.D1
DESTransform D1
Definition
TripleDESTransform.cs:67
System.Security.Cryptography.TripleDESTransform.E1
DESTransform E1
Definition
TripleDESTransform.cs:58
System.Security.Cryptography.TripleDESTransform.D3
DESTransform D3
Definition
TripleDESTransform.cs:73
System.Security.Cryptography.TripleDESTransform.E2
DESTransform E2
Definition
TripleDESTransform.cs:70
System.Security.Cryptography.TripleDESTransform.E3
DESTransform E3
Definition
TripleDESTransform.cs:64
System.Security.Cryptography.TripleDESTransform.D2
DESTransform D2
Definition
TripleDESTransform.cs:61
System.Security.Cryptography.TripleDESTransform.TripleDESTransform
TripleDESTransform(TripleDES algo, bool encryption, byte[] key, byte[] iv)
Definition
TripleDESTransform.cs:10
System.Security.Cryptography.TripleDESTransform.GetStrongKey
static byte[] GetStrongKey()
Definition
TripleDESTransform.cs:47
System.Security.Cryptography.TripleDESTransform
Definition
TripleDESTransform.cs:8
System.Security.Cryptography.TripleDES.IsWeakKey
static bool IsWeakKey(byte[] rgbKey)
Definition
TripleDES.cs:82
System.Security.Cryptography.TripleDES
Definition
TripleDES.cs:10
Mono.Security.Cryptography
Definition
ARC4Managed.cs:6
System.Security.Cryptography
Definition
Aes.cs:5
System.ExceptionArgument.key
@ key
System.ExceptionArgument.input
@ input
System.ExceptionArgument.array
@ array
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
TripleDESTransform.cs
Generated by
1.10.0