Home GnuPG
Diffusion GnuPG 3fcef7371480

gpg: Handle leading-zeros private key for Ed25519.

Description

gpg: Handle leading-zeros private key for Ed25519.

* g10/parse-packet.c (mpi_read_detect_0_removal): New.
(parse_key): Use mpi_read_detect_0_removal for PUBKEY_ALGO_EDDSA
to tweak the checksum.
  • GnuPG-bug-id: T5120
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>