summaryrefslogtreecommitdiff
path: root/eccdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'eccdata.c')
-rw-r--r--eccdata.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/eccdata.c b/eccdata.c
index b8dc0011..13717bb1 100644
--- a/eccdata.c
+++ b/eccdata.c
@@ -151,9 +151,7 @@ ecc_dup (const struct ecc_curve *ecc,
/* x' = t^2 - 2 x */
mpz_mul (x, t, t);
- /* mpz_submul_ui (x, p->x, 2); not available in mini-gmp */
- mpz_mul_ui (m, p->x, 2);
- mpz_sub (x, x, m);
+ mpz_submul_ui (x, p->x, 2);
mpz_mod (x, x, ecc->p);
/* y' = (x - x') * t - y */