Home GnuPG

DSA,ECDSA: Fix use of mpi_invm.

Description

DSA,ECDSA: Fix use of mpi_invm.

* cipher/dsa.c (sign): Call mpi_invm before _gcry_dsa_modify_k.
* cipher/ecc-ecdsa.c (_gcry_ecc_ecdsa_sign): Likewise.

Backported master commit of:
ada758e3019c2585213a132960613b1ac48502b8

  • GnuPG-bug-id: T4869
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 18 2020, 1:08 AM
Parents
rC90b7339b0654: mpi: Constant time mpi_inv with some conditions.
Branches
Unknown
Tags
Unknown
Tasks
T4869: constant-time mpi_invm