Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​RSAPKCS1KeyExchangeFormatter
Assembly: System.Security.Cryptography
Inheritance: object → AsymmetricKeyExchangeFormatter → RSAPKCS1KeyExchangeFormatter
Creates the PKCS#1 key exchange data using <see cref="T:System.Security.Cryptography.RSA" /> .
Properties
public
string
Parameters
Gets the parameters for the PKCS #1 key exchange.
public
RandomNumberGenerator
Rng
Gets or sets the random number generator algorithm to use in the creation of the key exchange.
Methods
public
byte[]
CreateKeyExchange​(byte[] rgbData)
rgbData
The secret information to be passed in the key exchange.
Returns The encrypted key exchange data to be sent to the intended recipient.
Creates the encrypted key exchange data from the specified input data.
public
byte[]
CreateKeyExchange​(byte[] rgbData,
Type symAlgType)
rgbData
The secret information to be passed in the key exchange.
symAlgType
This parameter is not used in the current version.
Returns The encrypted key exchange data to be sent to the intended recipient.
Creates the encrypted key exchange data from the specified input data.
public
void
SetKey​(AsymmetricAlgorithm key)
key
The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the public key.
Sets the public key to use for encrypting the key exchange data.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object