Home GnuPG

mpi:ec: Don't normalize the MPIs when GCRYECC_FLAG_LEAST_LEAK.

Description

mpi:ec: Don't normalize the MPIs when GCRYECC_FLAG_LEAST_LEAK.

* mpi/ec-nist.c (_gcry_mpi_ec_nist192_mod): Don't do MPN_NORMALIZE
when GCRYECC_FLAG_LEAST_LEAK.
(_gcry_mpi_ec_nist224_mod): Likewise.
(_gcry_mpi_ec_nist256_mod): Likewise.
(_gcry_mpi_ec_nist384_mod): Likewise.
(_gcry_mpi_ec_nist521_mod): Likewise.
* mpi/ec.c (ec_mod): Keep ->NLIMBS when GCRYECC_FLAG_LEAST_LEAK.
  • GnuPG-bug-id: T7519
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>