Page 1 of 1

value meaning in UPLOAD command

Posted: Sun Sep 10, 2017 11:25 pm
by Gibson
I have a problem on UPLOAD command. Could anyone help me figure out the meaning of the second APDU command? How is the field value " C4 82 03 81 " calculated?

>> 80 E6 02 00 13 06 73 4D 41 74 ...00 03 00 00 00 00 00 00 00 ...
<< 90 00

>> 80 E8 00 00 FA C4 82 03 81..

Re: value meaning in UPLOAD command

Posted: Mon Sep 11, 2017 6:21 am
by Thelogan
What you see in the second command is the LOAD command, and the first component to be loaded.

The upload command includes two consecutive GlobalPlatform APDU commands: INSTALL [for load] and following multiple LOAD commands. It shall be seen as a fixed sequence. The LOAD command contains parts of the CAP file. The component order is defined in the Java Card Virtual Machine Specification, as well as the CAP structure itself.