Commit 1d5e58b5 authored by Bodo Moeller's avatar Bodo Moeller
Browse files

Further improve/fix ec_GFp_simple_points_make_affine (ecp_smpl.c) and


group_order_tests (ectest.c).  Also fix the EC_POINTs_mul documentation (ec.h).

Reviewed-by: default avatar <emilia@openssl.org>

Conflicts:
	crypto/ec/ectest.c
parent 11814988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN
int EC_POINT_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *);
int EC_POINTs_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *);

/** Computes r = generator * n sum_{i=0}^num p[i] * m[i]
/** Computes r = generator * n sum_{i=0}^{num-1} p[i] * m[i]
 *  \param  group  underlying EC_GROUP object
 *  \param  r      EC_POINT object for the result
 *  \param  n      BIGNUM with the multiplier for the group generator (optional)
+2 −2
Original line number Diff line number Diff line
@@ -1676,7 +1676,7 @@ int ec_GFp_simple_points_make_affine(const EC_GROUP *group, size_t num, EC_POINT
		{
		for (i = 0; i < num; i++)
			{
			if (prod_Z[i] != NULL)
			if (prod_Z[i] == NULL) break;
			BN_clear_free(prod_Z[i]);
			}
		OPENSSL_free(prod_Z);