Our express partner will perform scheduled system maintenance from 19th Jan to 3rd Feb, so during this time, all the orders in our webshop will be handled from 4th Feb.
Sorry for any inconvenience caused.

Request data without sending data


Moderator: UNKNwYSHSA

Posts: 1
Joined: Wed Apr 15, 2020 10:56 am
Points :42

Request data without sending data

Post by YoHidden » Sat May 09, 2020 3:33 pm

Hi there,

I'm trying a simple APDU command to retrieve some data information from my Applet in a smart card based on the SLE78. Since it is simply a request with no data field needed, the LC field should not be present (as ISO7816-4). But since data is expected in the response, the LE should be set to the max length expected. So, I'm sending the APDU sequence...

CLA=80 INS=B0 P1=00 P2=00 LC=00 LE=FF

I know this is incorrect since the LC should be absent (but the presence of LE made me add LC to avoid LE being taken as LC). In fact, I'm getting the response for wrong length: 67 00.

The only way for the command to succeed is to add a dummy 1 byte data field and, therefore, LC becomes 1.

Is this dummy 1 byte data the right way to proceed in this case or is there any other proper way to send this APDU ?


Who is online

Users browsing this forum: No registered users and 2 guests

JavaCard OS : Disclaimer