Home GnuPG

mpi: Simplify mpi_powm.

Description

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.

  • Reported-by: Andreas Zankl <andreas.zankl@aisec.fraunhofer.de>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 4 2017, 10:38 AM
Parents
rC654024081cfa: build: Use macOS' compatibility macros to enable all features.
Branches
Unknown
Tags
Unknown