Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RSAPKCS1KeyExchangeDeformatter.cs
Go to the documentation of this file.
2
4
5[UnsupportedOSPlatform("browser")]
7{
8 private RSA _rsaKey;
9
11
13 {
14 get
15 {
16 return RngValue;
17 }
18 set
19 {
21 }
22 }
23
24 public override string? Parameters
25 {
26 get
27 {
28 return null;
29 }
30 set
31 {
32 }
33 }
34
38
40 {
41 if (key == null)
42 {
43 throw new ArgumentNullException("key");
44 }
45 _rsaKey = (RSA)key;
46 }
47
48 public override byte[] DecryptKeyExchange(byte[] rgbIn)
49 {
50 if (_rsaKey == null)
51 {
53 }
55 }
56
57 public override void SetKey(AsymmetricAlgorithm key)
58 {
59 if (key == null)
60 {
61 throw new ArgumentNullException("key");
62 }
63 _rsaKey = (RSA)key;
64 }
65}
static string Cryptography_MissingKey
Definition SR.cs:114
Definition SR.cs:7
virtual byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
Definition RSA.cs:65