Home GnuPG
Diffusion GnuPG dddbb26155f2

common: New helper functions for OpenPGP curve OIDs.

Description

common: New helper functions for OpenPGP curve OIDs.

* common/openpgp-oid.c (openpgp_oidbuf_to_str): Factor most code out
to ...
(openpgp_oidbuf_to_str): new.
(openpgp_oidbuf_is_ed25519): New.
(openpgp_oidbuf_is_cv25519): New.

At some places it is more convenient (and faster) to directly work on
buffers and avoid the way via opaque MPIs. These 3 new functions
allow for that.

(cherry picked from commit 4a1558d0c7190cf13d35385e47291a7aa121be3e)

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

Details

Provenance
wernerAuthored on Jan 29 2019, 6:19 PM
Parents
rG9fd6ba268f1f: doc: Mark keyserver-options timeout and http-proxy as obsolete.
Branches
Unknown
Tags
Unknown