Bewerken

Delen via


ECParameters.Validate Method

Definition

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.

  • Curve.Validate must also succeed.

Applies to