Home GnuPG

ec-nist: avoid unintentional conditional branch by comparison

Description

ec-nist: avoid unintentional conditional branch by comparison

* mpi/ec-nist.c (_gcry_mpi_ec_nist521_mod): Use mpih_limb_is_not_zero.
* mpi/mpi-internal.h (mpih_limb_is_not_zero): New.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Nov 1 2023, 9:03 PM
Parents
rCaab6a42d5f44: mpih_cmp_ui: avoid unintentional conditional branch
Branches
Unknown
Tags
Unknown