Home GnuPG

mpih_cmp_ui: avoid unintentional conditional branch
9acddd8b95e1Unpublished

Unpublished Commit · Learn More

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

Description

mpih_cmp_ui: avoid unintentional conditional branch

* mpi/mpi-internal.h (mpih_limb_is_zero): New.
* mpi/mpih-const-time.c (_gcry_mpih_cmp_ui): Use mpih_limb_is_zero
instead of comparison.

Cherry pick master commit of:
aab6a42d5f44724b73a02598546a5e7d8b33298e

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

Details

Provenance
jukiviliAuthored on Nov 1 2023, 8:45 PM
gniibeCommitted on Nov 7 2023, 1:28 AM
Parents
rC610667fb2558: ec-nist: use global vone and vzero
Branches
Unknown
Tags
Unknown

Event Timeline