The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

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 :3031
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 1 guest

JavaCard OS : Disclaimer