diff options
author | Werner Koch <[email protected]> | 2024-04-05 10:02:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-04-05 10:02:32 +0000 |
commit | 53c6b1e85854e242da254334ad84145b2b4d963e (patch) | |
tree | d95a1e70301bc0e25045693a132ae49bf63178fe /g10/keydb.h | |
parent | agent: Make "PKDECRYPT --kem" with optional value work. (diff) | |
download | gnupg-53c6b1e85854e242da254334ad84145b2b4d963e.tar.gz gnupg-53c6b1e85854e242da254334ad84145b2b4d963e.zip |
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.
GnuPG-bug-id: 6815
Diffstat (limited to 'g10/keydb.h')
-rw-r--r-- | g10/keydb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/keydb.h b/g10/keydb.h index 62a99295d..75a8ded72 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -578,7 +578,8 @@ char *hexfingerprint (PKT_public_key *pk, char *buffer, size_t buflen); char *v5hexfingerprint (PKT_public_key *pk, char *buffer, size_t buflen); char *format_hexfingerprint (const char *fingerprint, char *buffer, size_t buflen); -gpg_error_t keygrip_from_pk (PKT_public_key *pk, unsigned char *array); +gpg_error_t keygrip_from_pk (PKT_public_key *pk, unsigned char *array, + int get_second); gpg_error_t hexkeygrip_from_pk (PKT_public_key *pk, char **r_grip); char *ecdh_param_str_from_pk (PKT_public_key *pk); |