Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

INSTALL (for load/install) APDU command -urgent

843851Feb 12 2002 — edited Feb 14 2002
Hi all , after a long time I am back to Java card forum .
And I am back with some interesting queries ...

For loading a new application and install it to the card , OP provides LOAD and INSTALL command .
In OP 2.1 specification section 9.6.2.3 , data field for load command is given .
But I am not able to figure out all these . For loading I want to send the raw APDU command instead of using Gemplus API . For that I need to send APDU in the specified open card spec format . Will you please tell
me how do I calculate load file data block signature , DAP block etc for doing that load command .

Load APDU command must be used as followed:

CLA : 80 or 84
INS : E8
P1 : 00 if there is still block(s) to to load.
80 if the current block is the last of the sequence.
P2 : Block number
Lc : Length of the data.
Data
Le : 00

In the first call of Load command of the sequence, data is a TLV command.
TLV is for Tag, Length, Value.
In our case,
Tag = C4
Length = the length of the file data block
Value = the Load file data block

The data block are piece of a .CAP file or piece of a .JAR file.

But my question is how to generate the data block from .CAP file or .JAR file ?

In OpenCard spec version 2.1 , nothing is mentioed.

If any one has any idea , please let me know ...

Regards ,
Dibyendu
dibyendu.bhattacharya@eximsoft.com

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2002
Added on Feb 12 2002
3 comments
1,027 views