Home GnuPG

mpi: harden set_cond functions against EM leakage

Description

mpi: harden set_cond functions against EM leakage

* mpi/mpih-const-time.c (_gcry_mpih_set_cond): Use two masks for
selecting output.
* mpi/mpiutil.c (_gcry_mpi_set_cond): Use two masks for selecting
output.
  • GnuPG-bug-id: T5330
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Apr 3 2021, 8:53 PM
Parents
rC1266f5bb02b7: mpi: harden swap_cond functions against EM leakage
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task