Skip to content

Commit

Permalink
epass: Pass real data length for RAW ECDSA signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Oct 8, 2023
1 parent 3844602 commit 67a3874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libopensc/card-epass2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,8 +2303,8 @@ static int epass2003_decipher(struct sc_card *card, const u8 * data, size_t data
{
sc_format_apdu(card, &apdu, SC_APDU_CASE_3,0x2A, 0x9E, 0x9A);
apdu.data = data;
apdu.lc = 0x20;
apdu.datalen = 0x20;
apdu.lc = datalen;
apdu.datalen = datalen;
}
else
{
Expand Down

0 comments on commit 67a3874

Please sign in to comment.