Home GnuPG
Diffusion GnuPG bf2fc12b83b4

gpg: Fix export of NIST ECC keys.
bf2fc12b83b4Unpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix export of NIST ECC keys.

* common/openpgp-oid.c (struct oidtable): New.
(openpgp_curve_to_oid): Rewrite and allow OID as input.
(openpgp_oid_to_curve): Make use of the new table.

Due to the previous change we now usually store the OID with the
private key and not the name. Thus during import we do not anymore
need to map the name to an oid but can use the oid directly. We fix
that by extending openpgp_curve_to_oid to allow an oidstr as input.

Details

Provenance
wernerAuthored on Sep 2 2014, 12:10 PM
Parents
rGafe85582ddc2: agent: Fix import of OpenPGP EdDSA keys.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGbf2fc12b83b4: gpg: Fix export of NIST ECC keys. (authored by Werner Koch <wk@gnupg.org>).Sep 2 2014, 12:10 PM