Home GnuPG

mpi: Add special format GCRYMPI_FMT_OPAQUE.
8b3eecee2d89Unpublished

Unpublished Commit · Learn More

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

Description

mpi: Add special format GCRYMPI_FMT_OPAQUE.

* src/gcrypt.h.in (GCRYMPI_FMT_OPAQUE): New.
(_gcry_sexp_nth_opaque_mpi): Remove.
* src/sexp.c (gcry_sexp_nth_mpi): Add support for GCRYMPI_FMT_OPAQUE.
(_gcry_sexp_vextract_param): Replace removed function by
GCRYMPI_FMT_OPAQUE.

Using a new formatting mode is easier than to add a dedicated
extraction function for opaque MPIs.

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

Details

Provenance
wernerAuthored on Nov 11 2013, 11:07 AM
Parents
rC7b26586e35a6: Fix error output in CTR selftest
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC8b3eecee2d89: mpi: Add special format GCRYMPI_FMT_OPAQUE. (authored by Werner Koch <wk@gnupg.org>).Nov 11 2013, 7:15 PM