Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Max APDU size for java card

Card Products

Moderator: horse dream

User avatar
Golden
Posts: 3
Joined: Wed May 20, 2015 3:59 am
Points :0
Contact:

Max APDU size for java card

Post by Golden » Fri Oct 16, 2015 4:13 am

Hey everyone.

I have seen the below description about the max length of Command APDU and Response APDU.

The max length of Command APDU is 255 bytes. For Response APDU,it is 258 bytes.


As we all know, CLA,INS, P1,P2,Lc are all one byte each. That is, the max length of the Data field in command APDU should be 250 bytes.

The length of SW word is 2 bytes. The rest for response data is 256 bytes.

Is that right? What is the correct answer?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Max APDU size for java card

Post by UNKNwYSHSA » Thu Oct 22, 2015 5:11 am

See the specification ISO/IEC 7816-3;
In the chapter "Transmission of command-response pairs", describes all kinds of APDU command and response details.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 5 guests

JavaCard OS : Disclaimer