Update pre9
This commit is contained in:
+5
-6
@@ -45,16 +45,15 @@ static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, int64_t num)
|
||||
int64_t i;
|
||||
|
||||
if (!TEST_ptr(scalar = BN_new())
|
||||
|| !TEST_true(EC_POINT_get_affine_coordinates_GFp(group, point,
|
||||
scalar,
|
||||
NULL, NULL)))
|
||||
|| !TEST_true(EC_POINT_get_affine_coordinates(group, point, scalar,
|
||||
NULL, NULL)))
|
||||
goto err;
|
||||
|
||||
for (i = 0; i < num; i++) {
|
||||
if (!TEST_true(EC_POINT_mul(group, point, NULL, point, scalar, NULL))
|
||||
|| !TEST_true(EC_POINT_get_affine_coordinates_GFp(group, point,
|
||||
scalar,
|
||||
NULL, NULL)))
|
||||
|| !TEST_true(EC_POINT_get_affine_coordinates(group, point,
|
||||
scalar,
|
||||
NULL, NULL)))
|
||||
goto err;
|
||||
}
|
||||
return scalar;
|
||||
|
||||
Reference in New Issue
Block a user