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

派生实现尚未提供 方法的实现。

当前平台不支持原始密钥协议。

对象已被释放。

注解

使用原始派生的机密协议值时,必须小心谨慎。 原始值应用作密钥派生函数的输入,而不是直接用作密钥材料。

适用于