Diffusion GnuPG f22a00416149

tools: Use new API of libgcrypt for gpg-pair-tool.

Authored by gniibe on Jun 20 2019, 4:58 AM.

Description

tools: Use new API of libgcrypt for gpg-pair-tool.

* tools/gpg-pair-tool.c (create_dh_keypair): Just use
gcry_random_bytes for secret.  Call gcry_ecc_mul_point
with G to get the public key.
(compute_master_secret): Use gcry_ecc_mul_point.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeSep 19 2019, 11:36 AM
Parents
rG49671b76eae2: scd,pcsc: Use HANDLE for context and card.
Branches
Unknown
Tags
Unknown