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:
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 (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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user