mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-19 09:02:22 +02:00
scd: Fix for removing the prefix.
* scd/app-openopg.c (do_decipher): Fix the condition.
This commit is contained in:
parent
9639af5f16
commit
f03976f110
@ -4179,7 +4179,7 @@ do_decipher (app_t app, const char *keyidstr,
|
|||||||
|
|
||||||
if (app->app_local->keyattr[1].ecc.flags)
|
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
|
* Skip the prefix. It may be 0x40 (in new format), or MPI
|
||||||
* head of 0x00 (in old format).
|
* head of 0x00 (in old format).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user