AsymmetricKeyExchangeFormatter.CreateKeyExchange 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当在派生类中重写时,创建加密的密钥交换数据。
CreateKeyExchange(Byte[]) |
当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。 |
CreateKeyExchange(Byte[], Type) |
当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。 |
当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。
public:
abstract cli::array <System::Byte> ^ CreateKeyExchange(cli::array <System::Byte> ^ data);
C#
public abstract byte[] CreateKeyExchange(byte[] data);
abstract member CreateKeyExchange : byte[] -> byte[]
Public MustOverride Function CreateKeyExchange (data As Byte()) As Byte()
参数
- data
- Byte[]
要在密钥交换中传递的机密信息。
返回
Byte[]
要发送到目标接收方的加密密钥交换数据。
注解
此数据只能由私钥的持有者解释,该私钥对应于用于加密数据的公钥。 这有助于确保只有预期的收件人可以访问机密信息。
另请参阅
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。
public:
abstract cli::array <System::Byte> ^ CreateKeyExchange(cli::array <System::Byte> ^ data, Type ^ symAlgType);
C#
public abstract byte[] CreateKeyExchange(byte[] data, Type? symAlgType);
C#
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[]
要发送到目标接收方的加密密钥交换数据。
注解
此数据只能由私钥的持有者解释,该私钥对应于用于加密数据的公钥。 这有助于确保只有预期的收件人可以访问机密信息。
另请参阅
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |