1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

scd: Fix for removing the prefix.

* scd/app-openopg.c (do_decipher): Fix the condition.
This commit is contained in:
NIIBE Yutaka 2015-12-04 14:37:05 +09:00
parent 9639af5f16
commit f03976f110

View File

@ -4179,7 +4179,7 @@ do_decipher (app_t app, const char *keyidstr,
if (app->app_local->keyattr[1].ecc.flags)
{
if (indatalen > 32 + 1)
if (indatalen > 32 && (indatalen % 2))
{ /*
* Skip the prefix. It may be 0x40 (in new format), or MPI
* head of 0x00 (in old format).