1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00
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
..
2011-03-03 12:40:54 +01:00
2011-03-08 12:23:59 +01:00
2011-02-04 12:57:53 +01:00
2013-01-08 09:43:21 +01:00
2011-04-28 10:51:14 +02:00
2007-07-04 19:49:40 +00:00
2013-01-08 09:43:21 +01:00
2011-09-20 19:24:52 +02:00
2011-02-04 12:57:53 +01:00
2013-01-08 14:46:06 +01:00
2011-03-03 13:01:03 +01:00
2013-01-08 09:43:21 +01:00
2013-01-30 12:00:29 +01:00
2011-06-13 14:54:40 +02:00
2013-01-08 09:43:21 +01:00
2008-12-12 08:54:50 +00:00
2012-08-24 09:44:33 +02:00
2011-08-10 14:11:30 +02:00
2013-02-07 20:37:58 +01:00
2011-09-20 19:24:52 +02:00
2013-01-08 09:43:21 +01:00