Page 1 of 1

Max APDU size for java card

Posted: Fri Oct 16, 2015 4:13 am
by Golden
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?

Re: Max APDU size for java card

Posted: Thu Oct 22, 2015 5:11 am
by UNKNwYSHSA
See the specification ISO/IEC 7816-3;
In the chapter "Transmission of command-response pairs", describes all kinds of APDU command and response details.