ECParameters.Validate Método
Definição
Valida o objeto atual.Validates the current object.
public:
void Validate();
public void Validate ();
member this.Validate : unit -> unit
Public Sub Validate ()
Exceções
Os parâmetros de chave ou curva não são válidos para o tipo de curva atual.The key or curve parameters are not valid for the current curve type.
Comentários
O Validate método verifica a integridade da ECParameters estrutura, lançando uma CryptographicException quando ela não é válida.The Validate method checks the integrity of the ECParameters structure, throwing a CryptographicException when it is not valid. A seguir estão os requisitos:The following are the requirements:
Q.XQ.X e Q .Yand Q.Y são campos obrigatórios e devem ter o mesmo comprimento.are required fields and must have the same length.
Se a curva for uma curva explícita, D será necessário e deverá ter o mesmo comprimento de Curve . Order .If the curve is an explicit curve, D is required and must have the same length as Curve.Order.
Se a curva for uma curva nomeada, D será necessária e deverá ter o mesmo comprimento de Q .XIf the curve is a named curve, D is required and must have the same length as Q.X e Q . Y .and Q.Y.
Curve.ValidateCurve.Validate também deve ter sucesso.must also succeed.