Home GnuPG

mpi:ec: Avoid use mpi_const.

Description

mpi:ec: Avoid use mpi_const.

* mpi/ec.c (_gcry_mpi_ec_mul_point): Use mpi_mul_ui.
(_gcry_mpi_ec_curve_point): Use mpi_mul_ui and mpi_add_ui.
Don't use mpi_const.
* tests/t-mpi-point.c (point_on_curve): Add Curve25519.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Mar 21, 6:58 AM
Parents
rC5052efed9f54: mpi:ec: Don't use mpi_powm for small exponent.
Branches
Unknown
Tags
Unknown