Home GnuPG
Diffusion GnuPG 12029f83fd0a

mpi: Same computation for square and multiply for mpi_pow.

Description

mpi: Same computation for square and multiply for mpi_pow.

* mpi/mpi-pow.c (_gcry_mpi_powm): Compare msize for max_u_size.  Move
the assignment to base_u into the loop.  Copy content refered by RP to
BASE_U except the last of the loop.

(backport commit of libgcrypt master:
78130828e9a140a9de4dafadbc844dbb64cb709a)

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 7 2017, 7:38 AM
Parents
rGb38f4489f75e: mpi: Simplify mpi_powm.
Branches
Unknown
Tags
Unknown