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.​AsymmetricKeyExchangeFormatter

Assembly: System.Security.Cryptography

Inheritance: object → AsymmetricKeyExchangeFormatter

Represents the base class from which all asymmetric key exchange formatters derive.

Properties

public string
Parameters
When overridden in a derived class, gets the parameters for the asymmetric key exchange.

Methods

public byte[]
CreateKeyExchange​(byte[] data)
data The secret information to be passed in the key exchange.
Returns The encrypted key exchange data to be sent to the intended recipient.
When overridden in a derived class, creates the encrypted key exchange data from the specified input data.
public byte[]
CreateKeyExchange​(byte[] data, Type symAlgType)
data 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.
When overridden in a derived class, creates the encrypted key exchange data from the specified input data.
public void
SetKey​(AsymmetricAlgorithm key)
key The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.
When overridden in a derived class, sets the public key to use for encrypting the secret information.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object