Home GnuPG
Diffusion GnuPG 5c599e4f6edd

scd: Support OpenPGP card V3 for RSA.
5c599e4f6eddUnpublished

Unpublished Commit · Learn More

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

Description

scd: Support OpenPGP card V3 for RSA.

* scd/app-openpgp.c (struct app_local_s): Remove max_cmd_data and
max_rsp_data fields as Extended Capabilities bits are different.
(get_cached_data) Use extcap.max_certlen_3.
(get_one_do): Don't use exmode=1.
(determine_rsa_response): New.
(get_public_key, do_genkey): Call determine_rsa_response.
(do_sign): Use keyattr[0].rsa.n_bits / 8, instead of max_rsp_data.
(do_auth): Use keyattr[2].rsa.n_bits / 8, instead of max_rsp_data.
(do_decipher): Likewise with Use keyattr[1].rsa.n_bits / 8.
(show_caps): Remove max_cmd_data and max_rsp_data.
(app_select_openpgp): Likewise.

Backport of master commit: b89e63e5c326af71470124b410e6429cbd2b5c43

OpenPGP card V3 had introduced incompatible change in Extended
Capabilities bits. We can work around by this change by not
using those bits.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Nov 25 2016, 8:12 AM
Parents
rGbb5a153f9dd9: scd: Fix receive buffer size.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG5c599e4f6edd: scd: Support OpenPGP card V3 for RSA. (authored by NIIBE Yutaka <gniibe@fsij.org>).Nov 30 2016, 1:51 AM
gniibe mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
gniibe mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM