Home GnuPG

ecc: Simplify using mpi_ec_t directly.

Description

ecc: Simplify using mpi_ec_t directly.

* cipher/ecc-common.h (ECC_public_key, ECC_secret_key): Remove.
(_gcry_ecc_ecdsa_sign, _gcry_ecc_ecdsa_verify): Use mpi_ec_t.
(_gcry_ecc_eddsa_genkey, gcry_ecc_eddsa_sign): Likewise.
(_gcry_ecc_eddsa_verify): Likewise.
(_gcry_ecc_gost_sign, _gcry_ecc_gost_verify): Likewise.
* cipher/ecc-ecdsa.c (_gcry_ecc_ecdsa_sign): Use mpi_ec_t directly.
(_gcry_ecc_ecdsa_verify): Likewise.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_genkey): Likewise.
(_gcry_ecc_eddsa_sign, _gcry_ecc_eddsa_verify): Likewise.
* cipher/ecc-gost.c (_gcry_ecc_gost_sign): Likewise.
(_gcry_ecc_gost_verify): Likewise.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 22 2019, 6:29 AM
Parents
rC975de3879691: ecc: Fix for NBITS support.
Branches
Unknown
Tags
Unknown