ec: Use mpi_mulm instead of mpi_powm.
authorWerner Koch <wk@gnupg.org>
Sat, 7 Sep 2013 08:06:46 +0000 (10:06 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 23 Sep 2013 06:46:31 +0000 (08:46 +0200)
commit4552437bb3c5ff96a889fd31e4bc504b2a12fac7
tree5605614302b3365bfa85e557bf66ab6aadc5bb48
parent925d4fb3e8f2df3c5566ec6b5df7620a3d3504e5
ec: Use mpi_mulm instead of mpi_powm.

* mpi/ec.c (ec_pow2): New.
(ec_powm): Remove call to mpi_abs.
(dup_point_weierstrass, dup_point_twistededwards)
(add_points_weierstrass, add_points_twistededwards)
(_gcry_mpi_ec_curve_point): Use ec_pow2.

Signed-off-by: Werner Koch <wk@gnupg.org>
mpi/ec.c
mpi/mpi-add.c
mpi/mpi-mul.c