gnupg/scd
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: b89e63e5c3

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
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 19:28:02 +01:00
Makefile.am scd: Use cipher.h for constants. 2016-11-29 16:38:45 +09:00
apdu.c scd: Fix receive buffer size. 2016-11-30 09:33:10 +09:00
apdu.h scd: Clean up unused shutdown method. 2016-11-30 09:08:23 +09:00
app-common.h scd: Fix "Conflicting usage" bug. 2015-12-15 09:48:06 +09:00
app-dinsig.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
app-geldkarte.c Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
app-help.c More support for Netkey cards. 2009-05-08 15:07:45 +00:00
app-nks.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
app-openpgp.c scd: Support OpenPGP card V3 for RSA. 2016-11-30 09:51:23 +09:00
app-p15.c A bunch of minor changes 2009-12-21 16:19:09 +00:00
app.c scd: Fix card removal/reset on multiple contexts. 2016-11-29 17:39:00 +09:00
atr.c Change default gpgsm cipher back to 3DES. 2009-02-09 10:25:41 +00:00
atr.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-common.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-dinsig.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-p15.c Use bin2hex if possible. 2008-11-03 10:54:18 +00:00
card.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
ccid-driver.c scd: Clean up unused shutdown method. 2016-11-30 09:08:23 +09:00
ccid-driver.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
command.c scd: Fix status info encoding. 2016-11-30 09:30:18 +09:00
iso7816.c scd: minor cleanup to merge other works. 2016-11-30 09:22:59 +09:00
iso7816.h scd: minor cleanup to merge other works. 2016-11-30 09:22:59 +09:00
pcsc-wrapper.c scd: PC/SC reader selection by partial string match. 2015-05-01 14:16:28 +09:00
sc-copykeys.c SCD: API cleanup for keypad handling. 2013-02-05 14:09:47 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:17:04 +02:00
scdaemon.c scd: Make option --homedir work. 2016-11-29 17:10:33 +09:00
scdaemon.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00