mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue