Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateKeyExchange() [1/2]

override byte[] System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter.CreateKeyExchange ( byte[] rgbData)
inline

Definition at line 53 of file RSAPKCS1KeyExchangeFormatter.cs.

54 {
55 if (_rsaKey == null)
56 {
57 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingKey);
58 }
59 return _rsaKey.Encrypt(rgbData, RSAEncryptionPadding.Pkcs1);
60 }
static string Cryptography_MissingKey
Definition SR.cs:114
Definition SR.cs:7
virtual byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
Definition RSA.cs:60

References System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter._rsaKey, System.SR.Cryptography_MissingKey, System.Security.Cryptography.RSA.Encrypt(), and System.Security.Cryptography.RSAEncryptionPadding.Pkcs1.