CardWerk smarter card solutions

ISO 7816-4: Annex B: Transportation of APDU messages by T=1

SmartCard API for .NET

Easy smart card integration with our smart card framework for .NET with C# and VB.NET sample code.

smart card API for C#

Sample code available for Mifare, DESFire, JavaCard, KVK, eGK, SIM, PIV, CAC, HID Prox/iCLASS and many more

Get SmartCard API NOW
download smart card API for C#, VB.NET and Visual Studio

ISO 7816 [part 1] [part 2] [part 3] [part4] [section..1 2 3 4 5 6 7 8 9 annex.. A B C D E F]

Annex B: Transportation of APDU messages by T=1

Annex B.1 Case 1

The command APDU is mapped onto the information field of an I-block without any change.

Command APDU
CLA INS P1 P2
Information field
CLA INS P1 P2

The information field of the I-block received in response is mapped onto the response APDU without any change.

Information field
SW1 SW2
Response field
SW1 SW2

Annex B.2 Case 2 (short and extended)

The command is mapped into the information field of an I-block without any change.

C-APDU
CLA INS P1 P2 Le field
Information field
CLA INS P1 P2 Le field

The response APDU consists of

  • either the information field of the I-block received in response,
  • or the concatenation of the information fields of successive I-blocks received in response. These blocks shall be chained.

Either information field

Data field SW1-SW2
or concatenation of information fields
Data
...
... SW1-SW2
R-APDU
Data SW1-SW2

Annex B.3 Case 3 (short and extended)

The command APDU is mapped without any change onto

  • either the information field of one I-block,
  • or the concatenation field of the information fields of successive I-blocks which shall be chained.

C-APDU
CLA INS P1 P2 Lc field Data field
Either information field
CLA INS P1 P2 Lc field Data field
or concatenation of information fields
CLA INS P1 P2 Lc field Data ...
...
... field

The information field of the I-block received in response is mapped onto the response APDU without any change.

R-APDU
SW1 SW2
Information field
SW1 SW2

Annex B.4 Case 4 (short and extended)

The command APDU is mapped without any change onto

  • either the information field of one I-block,
  • or the concatenation of the information fields of successive I-blocks which shall be chained.

C-APDU
CLA INS P1 P2 Lc field Data field Le field
Either information field
CLA INS P1 P2 Lc field Data field Le field
or concatenation of information fields
CLA INS P1 P2 Lc field Data field Le field
...
... Le field

The response APDU consists of

  • either the information of the I-block received in response,
  • or the concatenation of the information fields of successive I-blocks received in response. These blocks shall be chained.

Data field SW1-SW2
or concatenation of information fields
Data
...
... SW1-SW2
R-APDU
Data SW1-SW2

[Home] | [Services] | [Solutions] | [Knowledge Base] | [Search] | [Contact]

Copyright 1999-2017 Jacquinot Consulting, Inc.
All rights reserved. Legal disclaimer Last modified August 10, 2017