Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RSAOAEPKeyExchangeDeformatter.cs
Go to the documentation of this file.
1
using
System.Runtime.Versioning
;
2
3
namespace
System.Security.Cryptography
;
4
5
[UnsupportedOSPlatform(
"browser"
)]
6
public
class
RSAOAEPKeyExchangeDeformatter
:
AsymmetricKeyExchangeDeformatter
7
{
8
private
RSA
_rsaKey
;
9
10
public
override
string
?
Parameters
11
{
12
get
13
{
14
return
null
;
15
}
16
set
17
{
18
}
19
}
20
21
public
RSAOAEPKeyExchangeDeformatter
()
22
{
23
}
24
25
public
RSAOAEPKeyExchangeDeformatter
(
AsymmetricAlgorithm
key
)
26
{
27
if
(
key
==
null
)
28
{
29
throw
new
ArgumentNullException
(
"key"
);
30
}
31
_rsaKey
= (
RSA
)
key
;
32
}
33
34
public
override
byte
[]
DecryptKeyExchange
(
byte
[] rgbData)
35
{
36
if
(
_rsaKey
==
null
)
37
{
38
throw
new
CryptographicUnexpectedOperationException
(
System
.
SR
.
Cryptography_MissingKey
);
39
}
40
return
_rsaKey
.
Decrypt
(rgbData,
RSAEncryptionPadding
.
OaepSHA1
);
41
}
42
43
public
override
void
SetKey
(
AsymmetricAlgorithm
key
)
44
{
45
if
(
key
==
null
)
46
{
47
throw
new
ArgumentNullException
(
"key"
);
48
}
49
_rsaKey
= (
RSA
)
key
;
50
}
51
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.SR.Cryptography_MissingKey
static string Cryptography_MissingKey
Definition
SR.cs:114
System.SR
Definition
SR.cs:7
System.Security.Cryptography.AsymmetricAlgorithm
Definition
AsymmetricAlgorithm.cs:6
System.Security.Cryptography.AsymmetricKeyExchangeDeformatter
Definition
AsymmetricKeyExchangeDeformatter.cs:7
System.Security.Cryptography.CryptographicUnexpectedOperationException
Definition
CryptographicUnexpectedOperationException.cs:10
System.Security.Cryptography.RSAEncryptionPadding.OaepSHA1
static RSAEncryptionPadding OaepSHA1
Definition
RSAEncryptionPadding.cs:25
System.Security.Cryptography.RSAEncryptionPadding
Definition
RSAEncryptionPadding.cs:8
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter.RSAOAEPKeyExchangeDeformatter
RSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key)
Definition
RSAOAEPKeyExchangeDeformatter.cs:25
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter.Parameters
override? string Parameters
Definition
RSAOAEPKeyExchangeDeformatter.cs:11
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter.RSAOAEPKeyExchangeDeformatter
RSAOAEPKeyExchangeDeformatter()
Definition
RSAOAEPKeyExchangeDeformatter.cs:21
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter._rsaKey
RSA _rsaKey
Definition
RSAOAEPKeyExchangeDeformatter.cs:8
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter.DecryptKeyExchange
override byte[] DecryptKeyExchange(byte[] rgbData)
Definition
RSAOAEPKeyExchangeDeformatter.cs:34
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter.SetKey
override void SetKey(AsymmetricAlgorithm key)
Definition
RSAOAEPKeyExchangeDeformatter.cs:43
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
Definition
RSAOAEPKeyExchangeDeformatter.cs:7
System.Security.Cryptography.RSA.Decrypt
virtual byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
Definition
RSA.cs:65
System.Security.Cryptography.RSA
Definition
RSA.cs:15
System.Runtime.Versioning
Definition
NonVersionableAttribute.cs:1
System.Security.Cryptography
Definition
CryptoPool.cs:3
System.ExceptionArgument.key
@ key
System
Definition
BlockingCollection.cs:8
source
System.Security.Cryptography.Algorithms
System.Security.Cryptography
RSAOAEPKeyExchangeDeformatter.cs
Generated by
1.10.0