語言

ECDiffieHellmanOpenSsl.DeriveKeyMaterial(ECDiffieHellmanPublicKey) 方法

定義

對共享秘密執行金鑰推導。

public:
 override cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public override byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
override this.DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public Overrides Function DeriveKeyMaterial (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()

參數

otherPartyPublicKey
ECDiffieHellmanPublicKey

對方的公開金鑰。

傳回

Byte[]

共享秘密的 SHA-256 雜湊值。

例外狀況

所 otherPartyPublicKey 使用的曲線大小與此鍵的曲線不同。

otherPartyPublicKey 是 null。

所 otherPartyPublicKey 使用的曲線與此鍵的曲線不同。

-或-

此實例僅代表公鑰。

適用於