Home GnuPG

cipher: Fix ElGamal decryption.

Description

cipher: Fix ElGamal decryption.

* cipher/elgamal.c (elg_decrypt): Call sexp_build always.
* cipher/rsa.c (rsa_decrypt): Return an error code of sexp_build
when RC != 0.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 31 2023, 7:09 AM
Parents
rC58b62be84454: rsa: Use memmov_independently when unpadding.
Branches
Unknown
Tags
Unknown