Home GnuPG
Diffusion GnuPG 9128d81bb7b9

agent:kem:ecc: Support a key on smartcard.

Description

agent:kem:ecc: Support a key on smartcard.

* agent/agent.h (agent_card_ecc_kem): New.
* agent/divert-scd.c (agent_card_ecc_kem): New.
* agent/pkdecrypt.c (ecc_extract_pk_from_key): New.
(ecc_extract_sk_from_key): New.
(ecc_raw_kem, get_cardkey, ecc_get_curve): New.
(ecc_pgp_kem_decrypt): Support a key on smartcard for ECC.
(composite_pgp_kem_decrypt): Handle a case of a key on smartcard.
* common/sexputil.c (get_ecc_curve_from_key): New.
* common/util.h (get_ecc_curve_from_key): New.
  • GnuPG-bug-id: T7097
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 26 2024, 7:18 AM
Parents
rG83e2dede0a49: speedo: Use gpg-authcode-sign.sh and change archive label to v2.5.
Branches
Unknown
Tags
Unknown
Tasks
T7097: Support a key on smartcard for PQC