Share via


ECDiffieHellman.DeriveRawSecretAgreement(ECDiffieHellmanPublicKey) 方法

定義

衍生原始金鑰資料。

public:
 virtual cli::array <System::Byte> ^ DeriveRawSecretAgreement(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public virtual byte[] DeriveRawSecretAgreement (System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
abstract member DeriveRawSecretAgreement : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
override this.DeriveRawSecretAgreement : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public Overridable Function DeriveRawSecretAgreement (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()

參數

otherPartyPublicKey
ECDiffieHellmanPublicKey

要用來衍生相互秘密之合作物件的公開金鑰。

傳回

Byte[]

原始金鑰合約。

例外狀況

otherPartyPublicKeynull

otherPartyPublicKey 在不同於此金鑰的曲線上。

衍生實作尚未提供 方法的實作。

目前的平臺不支援原始金鑰協定。

物件已經處置。

備註

使用原始衍生的秘密合約值時,必須小心。 原始值應該用來做為金鑰衍生函式的輸入,而不會直接當做索引鍵資料使用。

適用於