Home GnuPG
Diffusion GnuPG 53c6b1e85854

gpg: Support dual keygrips.

Description

gpg: Support dual keygrips.

* g10/keyid.c (keygrip_from_pk): Add arg get_second to support dual
algos.  Implement for Kyber.
(hexkeygrip_from_pk): Extend for dual algos.
* g10/call-agent.c (agent_keytotpm): Bail out for dual algos.
(agent_keytocard): Ditto.
(agent_probe_secret_key): Handle dual algos.
(agent_probe_any_secret_key): Ditto.
(agent_get_keyinfo): Allow for dual algos but take only the first key.
* g10/export.c (do_export_one_keyblock): Bail out for dual algos.

This also adds some fixmes which we eventually need to address.

Details

Provenance
wernerAuthored on Apr 5 2024, 12:02 PM
Parents
rGce8b25270b2a: agent: Make "PKDECRYPT --kem" with optional value work.
Branches
Unknown
Tags
Unknown
Tasks
T6815: PQC encryption for GnuPG