Home GnuPG

ecc: Simplify _gcry_ecc_compute_public.

Description

ecc: Simplify _gcry_ecc_compute_public.

* cipher/ecc-misc.c (_gcry_ecc_compute_public): Don't need G and d.
Use ec->G and ec->d.
* cipher/ecc-curves.c (_gcry_ecc_get_mpi): Follow the change.
(_gcry_ecc_get_point): Likewise.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_compute_h_d): Don't need d,
but use ec->d.
(_gcry_ecc_eddsa_sign): Follow the change.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 24 2019, 3:57 AM
Parents
rCc5a7191c1bd1: ecc: Use opaque MPI for _gcry_ecc_mul_point.
Branches
Unknown
Tags
Unknown