語言

AsymmetricKeyExchangeFormatter.CreateKeyExchange 方法

定義

當在派生類別中覆寫時,會產生加密的金鑰交換資料。

多載

名稱 Description
CreateKeyExchange(Byte[])

當在派生類別中覆寫時,會從指定的輸入資料建立加密金鑰交換資料。

CreateKeyExchange(Byte[], Type)

當在派生類別中覆寫時,會從指定的輸入資料建立加密金鑰交換資料。

CreateKeyExchange(Byte[])

來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
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)

來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
AsymmetricKeyExchangeFormatter.cs
來源:
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[]

加密金鑰交換資料,傳送給預定接收者。

備註

這些資料只能由持有與用於加密資料的公鑰對應的私鑰持有者來解讀。 這有助於確保只有預期接收者能存取秘密資訊。

另請參閱

適用於