DSA,ECDSA: Fix use of mpi_invm.

Authored by gniibe on Mar 18 2020, 1:08 AM.

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

Committed
gniibeMar 18 2020, 1:17 AM
Parents
rC90b7339b0654: mpi: Constant time mpi_inv with some conditions.
Branches
Unknown
Tags
Unknown