ECDiffieHellmanCng.GenerateKey(ECCurve) 方法

定義

針對指定的曲線產生新的暫時性公開/私密金鑰組。

public:
 override void GenerateKey(System::Security::Cryptography::ECCurve curve);
public override void GenerateKey (System.Security.Cryptography.ECCurve curve);
override this.GenerateKey : System.Security.Cryptography.ECCurve -> unit
Public Overrides Sub GenerateKey (curve As ECCurve)

參數

curve
ECCurve

用來產生暫時性公開/私密金鑰組的曲線。

例外狀況

curve 不會驗證。

備註

curve 必須驗證 (也就是說,當傳遞至 ECCurve.Validate 方法) 且不得為隱含時,它必須傳回 true。

Windows 不支援特性 2 曲線。

適用於