1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00
gnupg/scd
Werner Koch 780ba32336 gpg: Make decryption with the OpenPGP card work.
* scd/app-common.h (APP_DECIPHER_INFO_NOPAD): New.
* scd/app-openpgp.c (do_decipher): Add arg R_INFO.
* scd/app-nks.c (do_decipher): Add arg R_INFO as a dummy.
* scd/app.c (app_decipher): Add arg R_INFO.
* scd/command.c (cmd_pkdecrypt): Print status line "PADDING".
* agent/call-scd.c (padding_info_cb): New.
(agent_card_pkdecrypt): Add arg R_PADDING.
* agent/divert-scd.c (divert_pkdecrypt): Ditto.
* agent/pkdecrypt.c (agent_pkdecrypt): Ditto.
* agent/command.c (cmd_pkdecrypt):  Print status line "PADDING".
* g10/call-agent.c (padding_info_cb): New.
(agent_pkdecrypt): Add arg R_PADDING.
* g10/pubkey-enc.c (get_it): Use padding info.
--

Decryption using a card never worked in gpg 2.1 because the
information whether the pkcs#1 padding needs to be removed was not
available.  Gpg < 2.1 too this info from the secret sub key but that
has gone in 2.1.

Signed-off-by: Werner Koch <wk@gnupg.org>
2013-08-28 17:40:32 +02:00
..
apdu.c scd: Make SPRx32 pinpad work with PC/SC on Windows. 2013-08-21 16:45:48 +02:00
apdu.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
app-common.h gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
app-dinsig.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
app-geldkarte.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-help.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-nks.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
app-openpgp.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
app-p15.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
app.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
atr.c scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
atr.h scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
card-common.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-dinsig.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-p15.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
ccid-driver.c agent: Fix two compiler warnings. 2013-08-28 13:04:31 +02:00
ccid-driver.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
iso7816.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
iso7816.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
Makefile.am w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
pcsc-wrapper.c scd: PC/SC status fix. 2013-03-26 12:49:03 +09:00
sc-copykeys.c SCD: API cleanup for keypad handling. 2013-02-05 13:37:06 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
scdaemon.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00