Home GnuPG

mpi_ec_get_affine: fast path for Z==1 case

Description

mpi_ec_get_affine: fast path for Z==1 case

* mpi/ec.c (_gcry_mpi_ec_get_affine): Return X and Y as is
if Z is 1 (for Weierstrass and Edwards curves).
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jun 16 2021, 7:27 PM
Parents
rC165237776389: tests/t-mpi-point: add reduction test-vectors for secp256k1
Branches
Unknown
Tags
Unknown