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使用的曲线与此密钥使用的曲线不同。

  • 或 -

此实例仅表示一个公钥。

适用于