diff options
author | Werner Koch <[email protected]> | 2009-03-30 12:46:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-03-30 12:46:06 +0000 |
commit | 98e1a75e205b15da1da1bdf34f462a8acdc85ac9 (patch) | |
tree | 918647b1740329a1223f83c7edca539d96e9641f /scd/app-openpgp.c | |
parent | Signing using Netkey 3 cards does now work. (diff) | |
download | gnupg-98e1a75e205b15da1da1bdf34f462a8acdc85ac9.tar.gz gnupg-98e1a75e205b15da1da1bdf34f462a8acdc85ac9.zip |
Implement decryption for TCOS 3 cards.
Diffstat (limited to '')
-rw-r--r-- | scd/app-openpgp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index ce09a51f5..2c89e8c3c 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -3066,14 +3066,16 @@ do_decipher (app_t app, const char *keyidstr, { memset (fixbuf, 0, fixuplen); memcpy (fixbuf+fixuplen, indata, indatalen); - rc = iso7816_decipher (app->slot, fixbuf, fixuplen+indatalen, -1, + rc = iso7816_decipher (app->slot, 0, + fixbuf, fixuplen+indatalen, -1, outdata, outdatalen); xfree (fixbuf); } } else - rc = iso7816_decipher (app->slot, indata, indatalen, 0, + rc = iso7816_decipher (app->slot, 0, + indata, indatalen, 0, outdata, outdatalen); } return rc; |