Bugzilla Bug 334679: removed a duplicate line in ec_GF2m_validate_point.
authorwtchang%redhat.com
Fri, 05 May 2006 23:08:50 +0000
changeset 6983 b09483edf4b2a070efa4fa63b69efdb72b9d7422
parent 6979 9355b723e3be0b760f58665cde44a2b5cdeb6e2c
child 6986 498befd0f0addbaf2eb3708b4525a3446a0b89b9
push idunknown
push userunknown
push dateunknown
bugs334679
Bugzilla Bug 334679: removed a duplicate line in ec_GF2m_validate_point. r=douglas.stebila.
security/nss/lib/freebl/ecl/ec2_aff.c
--- a/security/nss/lib/freebl/ecl/ec2_aff.c
+++ b/security/nss/lib/freebl/ecl/ec2_aff.c
@@ -307,17 +307,16 @@ ec_GF2m_validate_point(const mp_int *px,
 		group->meth->field_enc(py, &pyt, group->meth);
 	} else {
 		mp_copy(px, &pxt);
 		mp_copy(py, &pyt);
 	}
 	/* left-hand side: y^2 + x*y  */
 	MP_CHECKOK( group->meth->field_sqr(&pyt, &accl, group->meth) );
 	MP_CHECKOK( group->meth->field_mul(&pxt, &pyt, &tmp, group->meth) );
-	MP_CHECKOK( group->meth->field_mul(&pxt, &pyt, &tmp, group->meth) );
 	MP_CHECKOK( group->meth->field_add(&accl, &tmp, &accl, group->meth) );
 	/* right-hand side: x^3 + a*x^2 + b */
 	MP_CHECKOK( group->meth->field_sqr(&pxt, &tmp, group->meth) );
 	MP_CHECKOK( group->meth->field_mul(&pxt, &tmp, &accr, group->meth) );
 	MP_CHECKOK( group->meth->field_mul(&group->curvea, &tmp, &tmp, group->meth) );
 	MP_CHECKOK( group->meth->field_add(&tmp, &accr, &accr, group->meth) );
 	MP_CHECKOK( group->meth->field_add(&accr, &group->curveb, &accr, group->meth) );
 	/* check LHS - RHS == 0 */