mpi: Fix mpi_pow alternative implementation.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Jul 2017 03:00:03 +0000 (12:00 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Jul 2017 03:00:03 +0000 (12:00 +0900)
commit66ed4d53789892def7b237756d8a0ab28df9d222
tree61d4fac54bb6936047ac18aac373e32c7f9db27f
parent619ebae9847831f43314a95cc3180f4b329b4d3b
mpi: Fix mpi_pow alternative implementation.

* mpi/mpi-pow.c
  [USE_ALGORITHM_SIMPLE_EXPONENTIATION] (_gcry_mpi_powm): Use
  mpi_set_cond.

--

Limbs of RES may be allocated more before the call of mpi_pow,
but it only uses the space of SIZE.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
mpi/mpi-pow.c