From 3e706ee0fab1df0fef16366d33267754ee4bbdf0 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Wed, 26 Jul 2006 23:17:46 +0000 Subject: [PATCH] Bugzilla Bug 345779: removed two useless assignments and fixed an error in the comment. r=douglas.stebila. git-svn-id: svn://10.0.0.236/trunk@203784 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/freebl/ecl/ec2_mont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mozilla/security/nss/lib/freebl/ecl/ec2_mont.c b/mozilla/security/nss/lib/freebl/ecl/ec2_mont.c index 17c9f6de453..7167a9879cb 100644 --- a/mozilla/security/nss/lib/freebl/ecl/ec2_mont.c +++ b/mozilla/security/nss/lib/freebl/ecl/ec2_mont.c @@ -205,14 +205,11 @@ ec_GF2m_pt_mul_mont(const mp_int *n, const mp_int *px, const mp_int *py, goto CLEANUP; } - MP_CHECKOK(mp_copy(rx, &x2)); /* x2 = rx */ - MP_CHECKOK(mp_copy(ry, &z2)); /* z2 = ry */ - MP_CHECKOK(mp_copy(px, &x1)); /* x1 = px */ MP_CHECKOK(mp_set_int(&z1, 1)); /* z1 = 1 */ MP_CHECKOK(group->meth->field_sqr(&x1, &z2, group->meth)); /* z2 = * x1^2 = - * x2^2 */ + * px^2 */ MP_CHECKOK(group->meth->field_sqr(&z2, &x2, group->meth)); MP_CHECKOK(group->meth->field_add(&x2, &group->curveb, &x2, group->meth)); /* x2 * =