- APDU
APDU
application protocol data unit
APDU message Command-response pair
+---------------------+--------------+------------------------------+---------+
Field | Length | Description | Code
+---------------------+--------------+------------------------------+---------+
Class byte | 1 | Class of instruction | CLA
Instruction byte | 1 | Instruction code | INS
Parameter bytes | 2 | Instruction parameters | P1-P2
Lc field | 0, 1 or 3 | The Lc field fixes number Lc | -
Command data field | Lc | String of Lc bytes | -
Le field | 0, 1, 2 or 3 | The Le field fixes number Le | -
Response data field | Lr | String of Lr bytes | -
Status bytes | 2 | Command processing status | SW1-SW2
+---------------------+--------------+------------------------------+---------+Links
* [http://cheef.ru/docs/iso/ Smartcard ISO's, contents ]
* [http://cheef.ru/docs/HowTo/APDU.info Selected list of smartcard APDU commands]
* [http://cheef.ru/docs/HowTo/SW1SW2.info Selected list of SW1 SW2 Status bytes]
Wikimedia Foundation. 2010.