ECDiffieHellman.GenerateKey(ECCurve) 方法

定義

在衍生類別中覆寫時,會針對指定的曲線產生新的暫時性公開/私密金鑰組。

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

參數

curve
ECCurve

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

例外狀況

curve 不會驗證。

衍生的類別必須覆寫這個方法。

備註

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

Windows 不支援特性 2 曲線。

適用於