Edit

Share via


AsymmetricKeyExchangeFormatter.CreateKeyExchange Method

Definition

When overridden in a derived class, creates the encrypted key exchange data.

Overloads

CreateKeyExchange(Byte[])

When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

CreateKeyExchange(Byte[], Type)

When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

CreateKeyExchange(Byte[])

Source:
AsymmetricKeyExchangeFormatter.cs
Source:
AsymmetricKeyExchangeFormatter.cs
Source:
AsymmetricKeyExchangeFormatter.cs

When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

public:
 abstract cli::array <System::Byte> ^ CreateKeyExchange(cli::array <System::Byte> ^ data);
public abstract byte[] CreateKeyExchange (byte[] data);
abstract member CreateKeyExchange : byte[] -> byte[]
Public MustOverride Function CreateKeyExchange (data As Byte()) As Byte()

Parameters

data
Byte[]

The secret information to be passed in the key exchange.

Returns

Byte[]

The encrypted key exchange data to be sent to the intended recipient.

Remarks

This data can only be interpreted by the holder of the private key corresponding to the public key used to encrypt the data. This helps to ensure that only the intended recipient can access the secret information.

See also

Applies to

CreateKeyExchange(Byte[], Type)

Source:
AsymmetricKeyExchangeFormatter.cs
Source:
AsymmetricKeyExchangeFormatter.cs
Source:
AsymmetricKeyExchangeFormatter.cs

When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

public:
 abstract cli::array <System::Byte> ^ CreateKeyExchange(cli::array <System::Byte> ^ data, Type ^ symAlgType);
public abstract byte[] CreateKeyExchange (byte[] data, Type? symAlgType);
public abstract byte[] CreateKeyExchange (byte[] data, Type symAlgType);
abstract member CreateKeyExchange : byte[] * Type -> byte[]
Public MustOverride Function CreateKeyExchange (data As Byte(), symAlgType As Type) As Byte()

Parameters

data
Byte[]

The secret information to be passed in the key exchange.

symAlgType
Type

This parameter is not used in the current version.

Returns

Byte[]

The encrypted key exchange data to be sent to the intended recipient.

Remarks

This data can only be interpreted by the holder of the private key corresponding to the public key used to encrypt the data. This helps to ensure that only the intended recipient can access the secret information.

See also

Applies to