Home GnuPG

ec: avoid unintentional condition branches for 25519, 448 and 256k1
237523b49f42Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

ec: avoid unintentional condition branches for 25519, 448 and 256k1

* mpi/ec.c (ec_addm_25519, ec_subm_25519, ec_mulm_25519, ec_addm_448)
(ec_subm_448, ec_mulm_448, ec_secp256k1_mod): Use mpih_limb_is_zero
and mpih_limb_is_not_zero instead of comparison to zero.

Cherry pick master commit of:
305a65c1ede8f78160100478d46efa199d334a64

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Nov 1 2023, 9:35 PM
gniibeCommitted on Nov 7 2023, 1:30 AM
Parents
rC2ed340744746: ec-nist: avoid unintentional conditional branch by comparison
Branches
Unknown
Tags
Unknown

Event Timeline