could cause confusion for ECDSA) is set to zero
Submitted by: Sheueling Chang
}
if (!BN_copy(&point->X, x)) goto err;
+ point->X.neg = 0;
if (!BN_copy(&point->Y, y)) goto err;
+ point->Y.neg = 0;
if (!BN_copy(&point->Z, BN_value_one())) goto err;
+ point->Z.neg = 0;
point->Z_is_one = 1;
ret = 1;
if (x != NULL)
{
if (!BN_copy(x, &point->X)) goto err;
+ x->neg = 0;
}
if (y != NULL)
{
if (!BN_copy(y, &point->Y)) goto err;
+ y->neg = 0;
}
ret = 1;