1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-11 21:48:50 +01:00

scd: Support AES decryption for OpenPGPcard v3.0.

* scd/app-openpgp.c (do_decipher): Support AES decryption.
This commit is contained in:
NIIBE Yutaka 2015-07-02 12:14:40 +09:00
parent 279381b59e
commit 45c49a0030

View File

@ -4101,7 +4101,10 @@ do_decipher (app_t app, const char *keyidstr,
if (rc) if (rc)
return rc; return rc;
if (app->app_local->keyattr[1].key_type == KEY_TYPE_RSA) if (indatalen == 16 + 1 || indatalen == 32 + 1)
/* PSO:DECIPHER with symmetric key. */
padind = -1;
else if (app->app_local->keyattr[1].key_type == KEY_TYPE_RSA)
{ {
/* We might encounter a couple of leading zeroes in the /* We might encounter a couple of leading zeroes in the
cryptogram. Due to internal use of MPIs these leading zeroes cryptogram. Due to internal use of MPIs these leading zeroes