summaryrefslogtreecommitdiffstats
path: root/g10/pubkey-enc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-04-05 12:02:32 +0200
committerWerner Koch <wk@gnupg.org>2024-04-05 12:02:32 +0200
commit53c6b1e85854e242da254334ad84145b2b4d963e (patch)
treed95a1e70301bc0e25045693a132ae49bf63178fe /g10/pubkey-enc.c
parentagent: Make "PKDECRYPT --kem" with optional value work. (diff)
downloadgnupg2-53c6b1e85854e242da254334ad84145b2b4d963e.tar.xz
gnupg2-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/pubkey-enc.c')
-rw-r--r--g10/pubkey-enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c
index 6e1b0898e..3e9daa963 100644
--- a/g10/pubkey-enc.c
+++ b/g10/pubkey-enc.c
@@ -248,6 +248,8 @@ get_it (ctrl_t ctrl,
/* Decrypt. */
desc = gpg_format_keydesc (ctrl, sk, FORMAT_KEYDESC_NORMAL, 1);
+
+ /*FIXME: Support dual keys. */
err = agent_pkdecrypt (NULL, keygrip,
desc, sk->keyid, sk->main_keyid, sk->pubkey_algo,
s_data, &frame, &nframe, &padding);