Sabtu, 10 Desember 2011

Format Command APDU ISO 7816 - 4

Sebelum kita melanjutkan postingan tentang command APDU, terlebih dahulu kita harus tahu apa itu APDU. APDU (Application Protocol Data Unit) adalah protokol yang digunakan untuk berkomunikasi antara smart card reader dan smart card.
Berikut format dari APDU yang dikirim smart card reader ke smart card

CLA | INS | P1 - P2 | Lc Field | Data field | Le field |

Note : 
CLA : Class of instructions
INS   : Instructions Code  (command APDU)
P1     : Instructions parameter 1
P2     : Instructions parameter 2
Lc     : Number of bytes presents in data field of the command
Data  : String of bytes sent in data field of the command
Le     : Maximum number of bytes expected in the data field of the response to the command

Lalu ini format response yang diterima oleh smart card reader

Data | SW1 | SW2 |

Data             : Response data
SW1 - SW2 : Processing status yang mengindikasikan itu sukses atau tidak.

Jika kurang jelas, kalian bisa lihat di sini

Sekian dari saya mengenai pengenalan format command apdu :)

0 komentar:

Posting Komentar