Home GnuPG

mpi: Fix mpi_pow alternative implementation.

Description

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>

Details

Provenance
gniibeAuthored on Jul 7 2017, 5:00 AM
Parents
rC619ebae98478: Fix mpi_pow alternative implementation.
Branches
Unknown
Tags
Unknown