Response Data format (4.0):
The SELECT command is documented in the ISO 7816-4 specifications and is used to select the application on the card, making it the active one. The data field is the AID of the application.
The response is the Application Info template which contains:
Introduced in 4.0, a single byte reports the card state in one round trip:
| Bit | Meaning |
|---|---|
| 0x10 | The card is initialized (PIN and PUK are set) |
| 0x20 | A LEE seed is loaded (LEE mode) |
| 0x0F | Remaining PIN attempts, valid only when the initialized bit is set |
Clients use the initialized bit to decide whether INIT is needed, without having to open a secure channel first.
Before 4.0 the response also carried an Instance UID (tag 0x8F), a secure channel public key (tag 0x80) and the number of remaining pairing slots. Those three fields are gone in 4.0 and clients must not rely on them. Clients that used the Instance UID to key per-card local state should migrate to the Key UID, or to the identity certificate public key for a card identifier stable across reinstalls.
The pre-initialized state was signalled differently before 4.0, by a bare public key instead of the template; since 4.0 the template is always returned and the initialized bit carries the information.