JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

question about Le in APDU command

JavaCard Applet Development Related Questions and Answers.
Benli
Posts: 11
Joined: Tue May 03, 2016 3:40 am
Points :150
Contact:

question about Le in APDU command

Post by Benli » Tue Jul 12, 2016 2:41 am

Hi friends in here,

I have a question about Le in APDU command.

If I don't know how many data I will have in response, is there any special value of Le for this case?

Thanks.

crizom
Posts: 11
Joined: Tue Jan 26, 2016 10:38 pm
Points :119
Contact:

Re: question about Le in APDU command

Post by crizom » Tue Jul 12, 2016 7:58 am

If you don't know how many bytes to expect, just set Le to 0x00. It will help you get all the data back.

But there is a special case.

If your card supports T=0 protocol, you will get error state 0x 6C NN (NN is the actually the bytes length the card will give you).
At this time, you should re-send the APDU command with correct Le NN to get the data.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 69 guests

JavaCard OS : Disclaimer