Home GnuPG

mpi:ec: Keep A untouched in ec_get_a_is_pminus3.

Description

mpi:ec: Keep A untouched in ec_get_a_is_pminus3.

* mpi/ec.c (ec_get_a_is_pminus3): Change the calculation
so that it keeps the MPI of A untouched.

Note that mpi_cmp with A may normalize the MPI.

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

Details

Provenance
gniibeAuthored on Thu, Mar 27, 3:12 AM
Parents
rC38cdb7fecc80: mpi:ec: Use ec_addm for ec_mul2.
Branches
Unknown
Tags
Unknown