ECParameters.Validate 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.
Validates the current object.
public:
void Validate();
public void Validate ();
member this.Validate : unit -> unit
Public Sub Validate ()
Exceptions
The key or curve parameters are not valid for the current curve type.
Remarks
The Validate method checks the integrity of the ECParameters structure, throwing a CryptographicException when it is not valid. The following are the requirements:
Q.X and Q.Y are required fields and must have the same length.
If the curve is an explicit curve, D is required and must have the same length as Curve.Order.
If the curve is a named curve, D is required and must have the same length as Q.X and Q.Y.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk