ECDiffieHellmanCng.GenerateKey(ECCurve) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a new ephemeral public/private key pair for the specified curve.
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)
Parameters
- curve
- ECCurve
The curve used to generate an ephemeral public/private key pair.
Exceptions
curve
does not validate.
Remarks
curve
must validate (that is, it must return true when passed to the ECCurve.Validate method) and must not be implicit.
Characteristic-2 curves are not supported on Windows.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.