语言

AsymmetricKeyExchangeFormatter.CreateKeyExchange 方法

定义

在派生类中重写时,创建加密密钥交换数据。

重载

名称 说明
CreateKeyExchange(Byte[])

在派生类中重写时,从指定的输入数据创建加密密钥交换数据。

CreateKeyExchange(Byte[], Type)

在派生类中重写时,从指定的输入数据创建加密密钥交换数据。

CreateKeyExchange(Byte[])

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

在派生类中重写时,从指定的输入数据创建加密密钥交换数据。

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()

参数

data
Byte[]

要传入密钥交换的机密信息。

返回

Byte[]

要发送到预期收件人的加密密钥交换数据。

注解

此数据只能由私钥的持有者解释,该私钥对应于用于加密数据的公钥。 这有助于确保只有预期收件人才能访问机密信息。

另请参阅

适用于

CreateKeyExchange(Byte[], Type)

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

在派生类中重写时,从指定的输入数据创建加密密钥交换数据。

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()

参数

data
Byte[]

要传入密钥交换的机密信息。

symAlgType
Type

此参数不在当前版本中使用。

返回

Byte[]

要发送到预期收件人的加密密钥交换数据。

注解

此数据只能由私钥的持有者解释,该私钥对应于用于加密数据的公钥。 这有助于确保只有预期收件人才能访问机密信息。

另请参阅

适用于