1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
NIIBE Yutaka 5c599e4f6e 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>
2016-11-30 09:51:23 +09:00
..
2016-11-30 09:33:10 +09:00
2016-11-30 09:08:23 +09:00
2015-12-15 09:48:06 +09:00
2013-02-08 09:20:43 +09:00
2009-05-08 15:07:45 +00:00
2013-02-08 09:20:43 +09:00
2009-12-21 16:19:09 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2008-11-03 10:54:18 +00:00
2007-07-04 19:49:40 +00:00
2016-11-30 09:30:18 +09:00
2016-11-29 16:38:45 +09:00
2016-11-29 17:10:33 +09:00
2013-02-08 09:20:43 +09:00