ECDiffieHellmanOpenSsl.DeriveKeyMaterial(ECDiffieHellmanPublicKey) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
對共享秘密執行金鑰推導。
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。