Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RSAOAEPKeyExchangeDeformatter.cs
Go to the documentation of this file.
2
4
5[UnsupportedOSPlatform("browser")]
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
24
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 {
39 }
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}
static string Cryptography_MissingKey
Definition SR.cs:114
Definition SR.cs:7
virtual byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
Definition RSA.cs:65