Diffusion GnuPG e34bae5286d7

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
gniibeJun 20 2019, 4:58 AM
Parents
rG5a5288d051a5: scd: Split data structures into app and card related objects.
Branches
Unknown
Tags
Unknown