Home GnuPG
Diffusion GnuPG 510bda7d3754

gpg: Clean up ECDH code path (5).

Description

gpg: Clean up ECDH code path (5).

* g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Now, it's only for
encrytion.
(pk_ecdh_decrypt): Use prepare_ecdh_with_shared_point and move decrypt
code path in original pk_ecdh_encrypt_with_shared_point here.
* g10/pkglue.h (pk_ecdh_encrypt_with_shared_point): Change API.
* g10/pkglue.c (pk_encrypt): Follow the change.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on May 22 2020, 4:58 AM
Parents
rG64d93271bfce: gpg: Clean up ECDH code path (4).
Branches
Unknown
Tags
Unknown