Werner Koch
471b06e91b
scd:p15: Fix decrypt followed by sign problem for D-Trust cards.
...
* scd/iso7816.c (iso7816_select_mf): New.
* scd/app-p15.c (card_product_t): New.
(struct app_local_s): Add field 'card_product'.
(read_ef_tokeninfo): Detect D-Trust card.
(prepare_verify_pin): Switch to D-Trust AID.
(do_decipher): Restore a SE for D-TRust cards. Change the padding
indicator to 0x81.
* common/percent.c (percent_data_escape): new. Taken from master.
--
Using what I learned from a USB trace running the Governikus Signer
Software on Windows this fixes the left over problem with the new
D-Trust card support.
Signed-off-by: Werner Koch <wk@gnupg.org>
Backported from master. This required to add the percent_data_escape
function we introduced in master on 2018-07-02:
commit 58baf40af641f8cbf597e508a292e85ae94688f1
common: New function percent_data_escape.
Signed-off-by: Werner Koch <wk@gnupg.org>
2020-04-15 15:31:56 +02:00
..
2018-03-23 08:37:14 +01:00
2017-05-11 18:12:37 +02:00
2020-03-19 15:48:12 +01:00
2017-07-18 18:08:25 +02:00
2018-02-14 12:21:44 +01:00
2018-08-28 16:47:38 +02:00
2018-02-14 12:21:44 +01:00
2020-03-27 21:20:13 +01:00
2016-11-05 12:02:19 +01:00
2017-05-10 11:13:12 +09:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2015-10-28 10:20:17 +01:00
2017-04-28 10:06:33 +09:00
2015-04-24 16:42:28 +02:00
2016-11-05 12:02:19 +01:00
2017-07-27 16:22:36 +02:00
2017-07-17 15:53:16 +02:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2011-02-04 12:57:53 +01:00
2019-02-19 15:49:55 +09:00
2018-05-02 14:07:39 +02:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2011-02-04 12:57:53 +01:00
2016-11-05 12:02:19 +01:00
2014-03-12 18:35:36 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2017-11-01 18:35:29 +01:00
2016-11-05 12:02:19 +01:00
2013-05-07 21:35:48 +02:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2020-01-17 14:28:13 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2015-11-17 12:50:22 +01:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2020-02-10 16:37:34 +01:00
2020-02-10 16:37:34 +01:00
2015-12-14 16:21:19 +01:00
2016-11-05 12:02:19 +01:00
2020-02-17 11:38:23 +01:00
2017-02-16 17:21:05 +01:00
2017-03-07 10:42:46 +09:00
2020-02-10 14:55:53 +01:00
2017-12-22 12:55:46 +01:00
2019-04-16 13:27:44 +09:00
2016-11-05 12:02:19 +01:00
2018-07-29 18:39:32 +02:00
2018-07-29 18:39:32 +02:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2018-05-02 19:03:07 +02:00
2018-12-05 08:23:57 +01:00
2018-12-05 08:23:57 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2019-04-16 13:27:44 +09:00
2019-08-12 10:46:26 +09:00
2016-11-05 12:02:19 +01:00
2019-01-29 20:17:29 +01:00
2020-03-14 19:38:09 +01:00
2020-04-15 15:31:56 +02:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2019-02-11 10:59:34 +01:00
2019-02-11 10:59:34 +01:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2017-02-21 13:11:46 -05:00
2019-08-21 10:23:05 +02:00
2018-03-23 08:37:14 +01:00
2016-11-05 12:02:19 +01:00
2018-10-24 20:30:17 +02:00
2017-04-28 10:06:33 +09:00
2018-09-06 11:46:20 +09:00
2017-05-24 17:01:48 +02:00
2016-11-05 12:02:19 +01:00
2017-06-23 12:01:20 +02:00
2019-02-11 10:59:34 +01:00
2019-02-11 10:59:34 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2018-10-02 14:31:56 +09:00
2017-07-25 12:43:37 +02:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-12-20 18:39:30 +01:00
2017-01-12 10:39:19 +01:00
2016-11-05 12:02:19 +01:00
2017-01-02 13:29:18 +01:00
2016-11-05 12:02:19 +01:00
2018-07-29 18:39:32 +02:00
2016-11-05 12:02:19 +01:00
2019-01-29 20:17:29 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2017-05-24 17:07:13 +02:00
2017-07-17 15:53:16 +02:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2016-11-05 12:02:19 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2016-11-05 12:02:19 +01:00
2017-01-05 20:43:40 +01:00
2016-11-05 12:02:19 +01:00
2017-02-21 13:11:46 -05:00
2017-01-17 10:19:06 +01:00
2017-02-24 13:48:28 +01:00
2019-05-27 11:41:35 +02:00
2016-11-05 12:02:19 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2020-04-15 15:31:56 +02:00
2016-11-05 12:02:19 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2019-02-12 16:30:31 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00