1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02:00
gnupg/scd
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 58baf40af6
    common: New function percent_data_escape.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-04-15 15:31:56 +02:00
..
apdu.c scd: Distinguish cancel by user and protocol error. 2019-02-19 15:51:14 +09:00
apdu.h scd: Distinguish cancel by user and protocol error. 2019-02-19 15:51:14 +09:00
app-common.h scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-dinsig.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-geldkarte.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-help.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-nks.c scd:nks: Extend keypairinfo with usage flags. 2019-08-21 13:59:20 +02:00
app-openpgp.c scd:openpgp: New attribute "MANUFACTURER". 2020-04-15 15:16:05 +02:00
app-p15.c scd:p15: Fix decrypt followed by sign problem for D-Trust cards. 2020-04-15 15:31:56 +02:00
app-sc-hsm.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app.c scd: Don't let the "undefined" app cause a conflict error. 2019-02-25 08:50:31 +01:00
atr.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c scd,ccid: Add support of GEMPC_EZIO. 2019-11-15 15:49:46 +09:00
ccid-driver.h scd,ccid: Add support of GEMPC_EZIO. 2019-11-15 15:49:46 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Make app_genkey and supporting ISO function more flexible. 2019-02-11 10:59:32 +01:00
iso7816.c scd:p15: Fix decrypt followed by sign problem for D-Trust cards. 2020-04-15 15:31:56 +02:00
iso7816.h scd:p15: Fix decrypt followed by sign problem for D-Trust cards. 2020-04-15 15:31:56 +02:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00
scdaemon.h build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00