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

◆ CreateKeyExchange() [1/2]

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

Definition at line 78 of file RSAOAEPKeyExchangeFormatter.cs.

79 {
80 if (_rsaKey == null)
81 {
82 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingKey);
83 }
84 return _rsaKey.Encrypt(rgbData, RSAEncryptionPadding.OaepSHA1);
85 }
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.RSAOAEPKeyExchangeFormatter._rsaKey, System.SR.Cryptography_MissingKey, System.Security.Cryptography.RSA.Encrypt(), and System.Security.Cryptography.RSAEncryptionPadding.OaepSHA1.