From 67a38748f55a01ca1d4adf88aad76be1e8c794eb Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 28 Aug 2023 16:47:54 +0200 Subject: [PATCH] epass: Pass real data length for RAW ECDSA signatures --- src/libopensc/card-epass2003.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libopensc/card-epass2003.c b/src/libopensc/card-epass2003.c index 2985a88355..ed2ec649b2 100644 --- a/src/libopensc/card-epass2003.c +++ b/src/libopensc/card-epass2003.c @@ -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 {