Home GnuPG
Diffusion GnuPG ab17f7b6c392

gpg: Create all MPIs with RFC-4880 correct length headers.
ab17f7b6c392Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Create all MPIs with RFC-4880 correct length headers.

* g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.

This used not to work with opaque MPI as returned by Libgcrypt from
ECC operations. This patch fixes this.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 16 2015, 8:14 PM
Parents
rGbcc8250bc5b9: gpg: Allow printing of MPI values in --list-mode.
Branches
Unknown
Tags
Unknown