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
RSAPKCS1KeyExchangeFormatter.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: 0x020002F8 RID: 760
8
[
ComVisible
(
true
)]
9
public
class
RSAPKCS1KeyExchangeFormatter
:
AsymmetricKeyExchangeFormatter
10
{
11
// Token: 0x060019C1 RID: 6593 RVA: 0x00037658 File Offset: 0x00035858
12
public
RSAPKCS1KeyExchangeFormatter
()
13
{
14
}
15
16
// Token: 0x060019C2 RID: 6594 RVA: 0x0003766C File Offset: 0x0003586C
17
public
RSAPKCS1KeyExchangeFormatter
(
AsymmetricAlgorithm
key
)
18
{
19
do
20
{
21
base
..ctor();
22
}
23
while
(
key
==
null
);
24
this._rsaKey
=
key
;
25
}
26
27
// Token: 0x170002CB RID: 715
28
// (get) Token: 0x060019C3 RID: 6595 RVA: 0x00037690 File Offset: 0x00035890
29
public
override
string
Parameters
30
{
31
get
32
{
33
return
"<enc:KeyEncryptionMethod enc:Algorithm=\"http://www.microsoft.com/xml/security/algorithm/PKCS1-v1.5-KeyEx\" xmlns:enc=\"http://www.microsoft.com/xml/security/encryption/v1.0\" />"
;
34
}
35
}
36
37
// Token: 0x170002CC RID: 716
38
// (get) Token: 0x060019C4 RID: 6596 RVA: 0x000376A4 File Offset: 0x000358A4
39
// (set) Token: 0x060019C5 RID: 6597 RVA: 0x000376B8 File Offset: 0x000358B8
40
public
RandomNumberGenerator
Rng
41
{
42
get
43
{
44
return
this.
RngValue
;
45
}
46
set
47
{
48
this.RngValue
=
value
;
49
}
50
}
51
52
// Token: 0x060019C6 RID: 6598 RVA: 0x000376CC File Offset: 0x000358CC
53
public
override
void
SetKey
(
AsymmetricAlgorithm
key
)
54
{
55
while
(
key
==
null
)
56
{
57
}
58
this._rsaKey
=
key
;
59
}
60
61
// Token: 0x060019C7 RID: 6599 RVA: 0x000376EC File Offset: 0x000358EC
62
public
override
byte
[]
CreateKeyExchange
(
byte
[]
rgbData
)
63
{
64
if
(
rgbData
!=
null
)
65
{
66
RSA
rsaKey
= this.
_rsaKey
;
67
if
(rsaKey !=
null
)
68
{
69
bool
overridesEncrypt
= this.
OverridesEncrypt
;
70
RSA
rsaKey2
= this.
_rsaKey
;
71
if
(rsaKey ==
null
)
72
{
73
}
74
if
(!
true
)
75
{
76
}
77
RandomNumberGenerator
randomNumberGenerator
=
RandomNumberGenerator
.
Create
();
78
}
79
}
80
string
resourceString
=
Environment
.
GetResourceString
(
"No asymmetric key object has been associated with this formatter object."
);
81
throw
new
ArrayTypeMismatchException
();
82
}
83
84
// Token: 0x060019C8 RID: 6600 RVA: 0x0000207A File Offset: 0x0000027A
85
public
override
byte
[]
CreateKeyExchange
(
byte
[]
rgbData
,
Type
symAlgType
)
86
{
87
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
88
}
89
90
// Token: 0x170002CD RID: 717
91
// (get) Token: 0x060019C9 RID: 6601 RVA: 0x00037738 File Offset: 0x00035938
92
private
bool
OverridesEncrypt
93
{
94
get
95
{
96
if
(this.
_rsaOverridesEncrypt
==
null
)
97
{
98
RSA
rsaKey
= this.
_rsaKey
;
99
Type
type;
100
Type
type2
;
101
if
((type !=
null
&& type ==
null
) ||
type2
==
null
||
type2
!=
null
)
102
{
103
}
104
}
105
throw
new
ArrayTypeMismatchException
();
106
}
107
}
108
109
// Token: 0x04000D10 RID: 3344
110
private
RandomNumberGenerator
RngValue
;
111
112
// Token: 0x04000D11 RID: 3345
113
private
RSA
_rsaKey
;
114
115
// Token: 0x04000D12 RID: 3346
116
private
bool
?
_rsaOverridesEncrypt
;
117
}
118
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Environment.GetResourceString
static string GetResourceString(string key)
Definition
Environment.cs:19
System.Environment
Definition
Environment.cs:17
System.Security.Cryptography.AsymmetricAlgorithm
Definition
AsymmetricAlgorithm.cs:10
System.Security.Cryptography.AsymmetricKeyExchangeFormatter
Definition
AsymmetricKeyExchangeFormatter.cs:9
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.Parameters
override string Parameters
Definition
RSAPKCS1KeyExchangeFormatter.cs:30
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter._rsaOverridesEncrypt
bool? _rsaOverridesEncrypt
Definition
RSAPKCS1KeyExchangeFormatter.cs:116
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.RSAPKCS1KeyExchangeFormatter
RSAPKCS1KeyExchangeFormatter()
Definition
RSAPKCS1KeyExchangeFormatter.cs:12
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.RSAPKCS1KeyExchangeFormatter
RSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key)
Definition
RSAPKCS1KeyExchangeFormatter.cs:17
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.Rng
RandomNumberGenerator Rng
Definition
RSAPKCS1KeyExchangeFormatter.cs:41
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter._rsaKey
RSA _rsaKey
Definition
RSAPKCS1KeyExchangeFormatter.cs:113
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.RngValue
RandomNumberGenerator RngValue
Definition
RSAPKCS1KeyExchangeFormatter.cs:110
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.CreateKeyExchange
override byte[] CreateKeyExchange(byte[] rgbData)
Definition
RSAPKCS1KeyExchangeFormatter.cs:62
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.SetKey
override void SetKey(AsymmetricAlgorithm key)
Definition
RSAPKCS1KeyExchangeFormatter.cs:53
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.CreateKeyExchange
override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
Definition
RSAPKCS1KeyExchangeFormatter.cs:85
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.OverridesEncrypt
bool OverridesEncrypt
Definition
RSAPKCS1KeyExchangeFormatter.cs:93
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
Definition
RSAPKCS1KeyExchangeFormatter.cs:10
System.Security.Cryptography.RSA
Definition
RSA.cs:11
System.Security.Cryptography.RandomNumberGenerator.Create
static RandomNumberGenerator Create()
Definition
RandomNumberGenerator.cs:17
System.Security.Cryptography.RandomNumberGenerator
Definition
RandomNumberGenerator.cs:10
System.Type
Definition
Type.cs:12
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.key
@ key
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
RSAPKCS1KeyExchangeFormatter.cs
Generated by
1.10.0