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 曲线的大小与此键中的曲线不同。

otherPartyPublicKeynull

使用的 otherPartyPublicKey 曲线不同于此键的曲线。

-或-

此实例仅表示公钥。

适用于