mpi: Simplify mpi_powm.
* mpi/mpi-pow.c (_gcry_mpi_powm): Simplify the loop.
This fix is not a solution for the problem reported (yet). The
problem is that the current algorithm of _gcry_mpi_powm depends on
exponent and some information leaks is possible.
(backport from master commit:
719468e53133d3bdf12156c5bfdea2bf15f9f6f1)
- Reported-by: Andreas Zankl <andreas.zankl@aisec.fraunhofer.de>
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>