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.

(backport from master commit:
719468e53133d3bdf12156c5bfdea2bf15f9f6f1)

  • 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
rC12ba983bb3be: build: Fix ChangeLog building for builds from other worktrees.
Branches
Unknown
Tags
Unknown