最終更新:2013-02-11 (月) 18:23:18 (4090d)
APDU
Top / APDU
Application Protocol Data Unit
内容
表記 | 名前 | 長さ | 内容 |
CLA | クラスバイト | 1 | 命令クラス |
INS | 命令バイト | 1 | 命令コード |
P1 | パラメータバイト1 | 1 | 命令パラメータ1 |
P2 | パラメータバイト2 | 1 | 命令パラメータ2 |
Lc | 長さ(Lc) | 1又は3 | コマンドのデータフィールドバイト内のバイト数 |
データ | データフィールドバイト | Lc (可変) | 受信するバイト列 |
Le | 長さ(Le) | 1又は3 | コマンドに対するレスポンスのデータフィールド内に期待される最大バイト数 |
ケース
Case 1
- Command: Header
- Response: Trailer
- CLA
- INS
- P1
- P2
Case 2
- Command: Header + Le
- Response: Data + Trailer
- CLA
- INS
- P1
- P2
- Le
Case 3
- Command: Header + Data
- Response: Trailer
- CLA
- INS
- P1
- P2
- Lc
- データ
Case 4
- Command: Header + Data + Le
- Response: Data + Trailer
- CLA
- INS
- P1
- P2
- Lc
- データ
- Le