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
RSAPKCS1KeyExchangeDeformatter.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: 0x020002F7 RID: 759
7
[
ComVisible
(
true
)]
8
public
class
RSAPKCS1KeyExchangeDeformatter
:
AsymmetricKeyExchangeDeformatter
9
{
10
// Token: 0x060019B8 RID: 6584 RVA: 0x00037544 File Offset: 0x00035744
11
public
RSAPKCS1KeyExchangeDeformatter
()
12
{
13
}
14
15
// Token: 0x060019B9 RID: 6585 RVA: 0x00037558 File Offset: 0x00035758
16
public
RSAPKCS1KeyExchangeDeformatter
(
AsymmetricAlgorithm
key
)
17
{
18
do
19
{
20
base
..ctor();
21
}
22
while
(
key
==
null
);
23
this._rsaKey
=
key
;
24
}
25
26
// Token: 0x170002C8 RID: 712
27
// (get) Token: 0x060019BA RID: 6586 RVA: 0x0003757C File Offset: 0x0003577C
28
// (set) Token: 0x060019BB RID: 6587 RVA: 0x00037590 File Offset: 0x00035790
29
public
RandomNumberGenerator
RNG
30
{
31
get
32
{
33
return
this.
RngValue
;
34
}
35
set
36
{
37
this.RngValue
=
value
;
38
}
39
}
40
41
// Token: 0x170002C9 RID: 713
42
// (get) Token: 0x060019BC RID: 6588 RVA: 0x000375A4 File Offset: 0x000357A4
43
// (set) Token: 0x060019BD RID: 6589 RVA: 0x000375B4 File Offset: 0x000357B4
44
public
override
string
Parameters
45
{
46
get
47
{
48
}
49
set
50
{
51
}
52
}
53
54
// Token: 0x060019BE RID: 6590 RVA: 0x000375C4 File Offset: 0x000357C4
55
public
override
byte
[]
DecryptKeyExchange
(
byte
[]
rgbIn
)
56
{
57
RSA
rsaKey
= this.
_rsaKey
;
58
if
(rsaKey !=
null
)
59
{
60
bool
overridesDecrypt
= this.
OverridesDecrypt
;
61
RSA
rsaKey2
= this.
_rsaKey
;
62
if
(rsaKey ==
null
)
63
{
64
}
65
if
(!
true
)
66
{
67
}
68
KeySizes
[]
legalKeySizesValue
=
rsaKey2
.LegalKeySizesValue;
69
string
resourceString
=
Environment
.
GetResourceString
(
"Error occurred while decoding PKCS1 padding."
);
70
}
71
return
"No asymmetric key object has been associated with this formatter object."
;
72
}
73
74
// Token: 0x060019BF RID: 6591 RVA: 0x00037608 File Offset: 0x00035808
75
public
override
void
SetKey
(
AsymmetricAlgorithm
key
)
76
{
77
while
(
key
==
null
)
78
{
79
}
80
this._rsaKey
=
key
;
81
}
82
83
// Token: 0x170002CA RID: 714
84
// (get) Token: 0x060019C0 RID: 6592 RVA: 0x00037628 File Offset: 0x00035828
85
private
bool
OverridesDecrypt
86
{
87
get
88
{
89
if
(this.
_rsaOverridesDecrypt
==
null
)
90
{
91
RSA
rsaKey
= this.
_rsaKey
;
92
Type
type;
93
Type
type2
;
94
if
((type !=
null
&& type ==
null
) ||
type2
==
null
||
type2
!=
null
)
95
{
96
}
97
}
98
throw
new
ArrayTypeMismatchException
();
99
}
100
}
101
102
// Token: 0x04000D0D RID: 3341
103
private
RSA
_rsaKey
;
104
105
// Token: 0x04000D0E RID: 3342
106
private
bool
?
_rsaOverridesDecrypt
;
107
108
// Token: 0x04000D0F RID: 3343
109
private
RandomNumberGenerator
RngValue
;
110
}
111
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
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.AsymmetricKeyExchangeDeformatter
Definition
AsymmetricKeyExchangeDeformatter.cs:9
System.Security.Cryptography.KeySizes
Definition
KeySizes.cs:9
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.RSAPKCS1KeyExchangeDeformatter
RSAPKCS1KeyExchangeDeformatter()
Definition
RSAPKCS1KeyExchangeDeformatter.cs:11
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter._rsaKey
RSA _rsaKey
Definition
RSAPKCS1KeyExchangeDeformatter.cs:103
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.RNG
RandomNumberGenerator RNG
Definition
RSAPKCS1KeyExchangeDeformatter.cs:30
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.SetKey
override void SetKey(AsymmetricAlgorithm key)
Definition
RSAPKCS1KeyExchangeDeformatter.cs:75
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.OverridesDecrypt
bool OverridesDecrypt
Definition
RSAPKCS1KeyExchangeDeformatter.cs:86
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter._rsaOverridesDecrypt
bool? _rsaOverridesDecrypt
Definition
RSAPKCS1KeyExchangeDeformatter.cs:106
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.Parameters
override string Parameters
Definition
RSAPKCS1KeyExchangeDeformatter.cs:45
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.RngValue
RandomNumberGenerator RngValue
Definition
RSAPKCS1KeyExchangeDeformatter.cs:109
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.RSAPKCS1KeyExchangeDeformatter
RSAPKCS1KeyExchangeDeformatter(AsymmetricAlgorithm key)
Definition
RSAPKCS1KeyExchangeDeformatter.cs:16
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter.DecryptKeyExchange
override byte[] DecryptKeyExchange(byte[] rgbIn)
Definition
RSAPKCS1KeyExchangeDeformatter.cs:55
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
Definition
RSAPKCS1KeyExchangeDeformatter.cs:9
System.Security.Cryptography.RSA
Definition
RSA.cs:11
System.Security.Cryptography.RandomNumberGenerator
Definition
RandomNumberGenerator.cs:10
System.Type
Definition
Type.cs:12
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
RSAPKCS1KeyExchangeDeformatter.cs
Generated by
1.10.0