ISO/IEC 7816-4
Identification cards — Integrated circuit cards — Part 4: Organization, security and commands for interchange
Cartes d’identification — Cartes à circuit intégré — Partie 4: Organisation, sécurité et commandes pour les échanges

Card service data
Referenced by a compact header set to ’31′, this interindustry data element indicates methods available in the card for supporting services described in 9. Table 85 shows the card service data byte.

Table 85 — Card service data byte
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
x x - - - Application selection
1 - - - - — by full DF name
- 1 - - - — by partial DF name
- - x x - BER-TLVdata objects available
- - 1 - - — in EF.DIR (see 8.2.1.1)
- - - 1 - — in EF.ATR (see 8.2.1.1)
- - - - x x x - EF.DIR and EF.ATR access services
- - - - 1 0 0 - — by theREAD BINARYcommand (transparent structure)
- - - - 0 0 0 - — by theREAD RECORD (S) command (record structure)
- - - - 0 1 0 - — by theGET DATA command (TLVstructure)
- - - - Any other value - Reserved for future use
- - - - 0 Card with MF
- - - - 1 Card without MF

If present in the historical bytes or in the initial data string (see 8.1.2), the card service data byte indicates whether EF.DIR and / or EF.ATR (see 8.2.1.1) are present or not and how to access them. The absence of card service data byte in the historical bytes and in the initial data string indicates that the card supports only the implicit application selection (default value).

Initial access data
Referenced by a compact header set to ’4Y’, this interindustry data element indicates a command APDU assumed to be the first command after the answer to reset and a possible protocol and parameters selection. The command APDU is specified in 8.1.2.

Card issuer’s data
Referenced by a compact header set to ’5Y’, this interindustry data element is not defined in ISO/IEC 7816. The card issuer defines a length, a structure and a coding.

Pre-issuing data
Referenced by a compact header set to ’6Y’, this interindustry data element is not defined in ISO/IEC 7816. The card manufacturer defines a length, a structure and a coding for a card manufacturer, an integrated circuit name, an integrated circuit manufacturer, a ROM mask version, an operating system version, etc. This interindustry data element may contain an integrated circuit manufacturer identifier (see ISO/IEC 7816-6).

Card capabilities
Referenced by a compact header set to ’71′, ’72′ or ’73′, this interindustry data element consists of up to three software function tables: either the first table, or the first two tables, or the three tables.
–The first software function table indicates selection methods supported by the card.
–The second software function table is the “data coding byte”. The data coding byte may also be present as the second byte in the file control parameter referenced by tag ’82′ (see Table 12).
–The third software function table indicates the ability to chain commands, to handle extended Lc and Le fields and to manage logical channels.

Table 86 —First software function table (selection methods)
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
x x x x x - - - DF selection (see 5.3.1)
1 - - - - - - - — by full DF name
- 1 - - - - - - — by partial DF name
- - 1 - - - - - — by path
- - - 1 - - - - — by file identifier
- - - - 1 - - - Implicit DF selection
- - - - - 1 - - Short EF identifier supported
- - - - - - 1 - Record number supported
- - - - - - - 1 Record identifier supported
Table 87 — First software function table (selection methods)
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
1 - - - - - - - EFs of TLV structure supported
—– x 0 0 1 1 x 0 1 0 1 —– —– —– —– —– Behaviour of write functions — One-time write — Proprietary — Write OR — Write AND
- - - - x x x x Data unit size in quartets (from one to 32 768 quartets, i.e., 16 384 bytes) (power of 2, e.g., 0001 = 2 quartets = one byte, default value)
x 0 1 Value ‘FF’ for the first byte of BER-TLVtag fields (see 5.2.2.1) — Invalid (used for padding, default value) — Valid (long private tags, constructed

 

Table 88 — Second software function table (data coding byte)
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
1 - - - - - - - Command chaining(see 5.1.1.1)
- 1 - - - - - - Extended Lcand Lefields(see 5.1)
—- —- —- x 1 0 x 1 0 —- —- —- Logical channel number assignment(see 7.1.2) — by the card — by the interface device No logical channel
- - - - - y z t Maximum number of logical channels(see 5.1.1 and 5.1.1.2) — y, z and t not all set to 1 means 4y+2z+t+1, i.e., from one to seven — y = z = t = 1 means eight or more
- - x - - - - - RFU