diff options
author | Werner Koch <[email protected]> | 2013-08-26 15:29:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-08-28 15:40:32 +0000 |
commit | 780ba3233618393835970bac4cf8aab713f4d7fa (patch) | |
tree | 646f0a60cff18fb3743abeecc46bb2a21877937c /doc/scdaemon.texi | |
parent | agent: Fix two compiler warnings. (diff) | |
download | gnupg-780ba3233618393835970bac4cf8aab713f4d7fa.tar.gz gnupg-780ba3233618393835970bac4cf8aab713f4d7fa.zip |
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 <[email protected]>
Diffstat (limited to 'doc/scdaemon.texi')
-rw-r--r-- | doc/scdaemon.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/scdaemon.texi b/doc/scdaemon.texi index f454f1428..1a4b6d7b1 100644 --- a/doc/scdaemon.texi +++ b/doc/scdaemon.texi @@ -600,6 +600,10 @@ using the command where @var{keyid} is the hexified ID of the key to be used. +If the card is ware of the apdding format a status line with padding +information is send before the plaintext data. The key for this +status line is @code{PADDING} with the only defined value being 0 and +meaning padding has been removed. @node Scdaemon GETATTR @subsection Read an attribute's value. |