Specifications

Smart Cards Lab COMPGA12 University College London
which means FILE NOT FOUND. For example certain cards from Mas-
terCard. For these at least, all is not lost. We we can skip this and the next
sub section and go directly to Section 16.5 (!).
16.3 Select The Master File
In the case of Normal Processing (61 Le) one can issue a next command:
GET RESPONSE
CLA INS P1 P2 Le
00 C0 00 00 Le
Only then we get the actual file 1PAY.SYS.DDF01. It is always like this
with smart cards, very few commands ever return data, especially when the
length of the data is long or unknown in advance. One frequently needs to
use GET RESPONSE to get the ’response’ data from the previous command.
Response obtained:
16.4 FCI
The response here is the so called FCI: File Control Info = status of the file
1PAY.SYS.DDF01 selected.
Exists in many products, in bank cards uses specific conventions. Gen-
eral philosophy:
TLV objects: Tag - Length - Value.
FCI is a sequence of nested TLV objects of the form
6F Ln [8X Ln Object ] [8X Ln Object ] [8X Ln Object ] .... 90 00
Objects can be nested.
Example from one bank card with some explanations:
6F1A 840E 3150..........3031 A508 880102 5F2D 02 656E 9000
6F: FCI on 26 bytes:
84: DF Name (14 bytes): 1PAY.SYS.DDF01
A5: Proprietary Information (8 bytes):
88: Short File Identifier (1 bytes): 02
5F2D: Language Preference (2 bytes): en
Your own example split into pieces:
c
Nicolas T. Courtois 2009-10