This file is indexed.

/usr/share/chipcard/cards/generic_pcsc/card.xml is in libchipcard-data 5.0.3beta-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<cards>
  <card name="card" >

    <commands>

      <!-- Secure PIN verification using the reader's keypad: ASCII -->
      <!-- Command for any CCID reader -->
      <command name="IsoPerformVerification_Ascii" target="reader" 
               driver="generic_pcsc" >
        <send>
          <APDU>
            <!-- use the following values:
              0: use the control code from the following element
              6: FEATURE_VERIFY_PIN_DIRECT
              7: FEATURE_MODIFY_PIN_DIRECT
              8: FEATURE_MCT_READERDIRECT
              9: FEATURE_MCT_UNIVERSAL
            -->
            <ELEM type="byte" >6</ELEM>
            <!-- use the following values: 
              0x42000001  IFD_EXCHANGE
              0x42000002: VERIFY_PIN
              0x42000003: MODIFY_PIN
              0x42000004: TRANSFER_PIN
            -->
            <ELEM type="dword" bigEndian="1" >0</ELEM>
              <!--
                00                       bTimeOut
                00                       bTimeOut2
                82                       bmFormatString: bytes, pos 0, 
                                         left justify, BCD
                00                       bmPINBlockString (PIN length)
                00                       bmPINLengthFormat
                08                       wPINMaxExtraDigit: max
                04                       wPINMaxExtraDigit: min
                02                       bEntryValidationCondition
                00                       bNumberMessage
                04 09                    wLangId
                00                       bMsgIndex
                00 00 00                 bTeoPrologue
                0d 00 00 00              ulDataLength
                00 20 00 00              APDU
                08 20 20 20 20 20 20 20  lc, data
              -->
            <ELEM type="bytes" storedAs="bytes" >
              00 00
              82 00 00
              08 04 02
              00 00 00 00 00 00 00
              04 00 00 00
              00 20 00 
            </ELEM>
            <ELEM name="pid" type="byte" />
          </APDU>
        </send>
        <results>
          <result sw1="0x90" type="success" >
            PIN ok
          </result>
            <result sw1="0x63" sw2="0xc0" type="error" >
            Bad PIN (only one try left !)
          </result>
            <result sw1="0x63" type="error" >Bad PIN</result>
            <result sw1="0x63" sw2="0xc1" type="error" >
            Bad PIN (only two tries left !)
          </result>
            <result sw1="0x63" sw2="0xc2" type="error" >
            Bad PIN (only three tries left !)
          </result>
            <result sw1="0x69" sw2="0x83" type="error" >
            Card seems to be destroyed, this might have the following reasons:
             1) you entered a bad PIN too often
             2) the card is of a new and yet unknown type
          </result>
            <result sw1="0x64" sw2="0x00" type="error" >
            Verification aborted due to timeout
          </result>
            <result sw1="0x64" sw2="0x01" type="error" >
            Verification aborted by user
          </result>
        </results>
      </command>

      <!-- Secure PIN verification using the reader's keypad: FPIN2 -->
      <command name="IsoPerformVerification_FPin2" target="reader" 
               driver="generic_pcsc" >
        <send>
          <APDU>
            <ELEM type="byte" >6</ELEM>
            <ELEM type="dword" bigEndian="1" >0</ELEM>
            <ELEM type="bytes" storedAs="bytes" >
              00 00
              89 47 04
              08 04 02
              00 00 00 00 00 00 00
              0d 00 00 00
              00 20 00 
            </ELEM>
            <ELEM name="pid" type="byte" />
            <ELEM type="bytes" storedAs="bytes" >
              08 20 ff ff ff ff ff ff ff
            </ELEM>
          </APDU>
        </send>
        <results>
          <result sw1="0x90" type="success" >
            PIN ok
          </result>
            <result sw1="0x63" sw2="0xc0" type="error" >
            Bad PIN (only one try left !)
          </result>
            <result sw1="0x63" type="error" >Bad PIN</result>
            <result sw1="0x63" sw2="0xc1" type="error" >
            Bad PIN (only two tries left !)
          </result>
            <result sw1="0x63" sw2="0xc2" type="error" >
            Bad PIN (only three tries left !)
          </result>
            <result sw1="0x69" sw2="0x83" type="error" >
            Card seems to be destroyed, this might have the following reasons:
             1) you entered a bad PIN too often
             2) the card is of a new and yet unknown type
          </result>
            <result sw1="0x64" sw2="0x00" type="error" >
            Verification aborted due to timeout
          </result>
            <result sw1="0x64" sw2="0x01" type="error" >
            Verification aborted by user
          </result>
        </results>
      </command>


      <!-- Secure PIN modification using the reader's keypad: ASCII -->
      <!-- Command for any CCID reader -->
      <command name="IsoPerformModification_Ascii" target="reader" 
               driver="generic_pcsc" >
        <send>
          <APDU>
            <!-- use the following values:
              0: use the control code from the following element
              6: FEATURE_VERIFY_PIN_DIRECT
              7: FEATURE_MODIFY_PIN_DIRECT
              8: FEATURE_MCT_READERDIRECT
              9: FEATURE_MCT_UNIVERSAL
            -->
            <ELEM type="byte" >7</ELEM>
            <!-- use the following values: 
              0x42000001  IFD_EXCHANGE
              0x42000002: VERIFY_PIN
              0x42000003: MODIFY_PIN
              0x42000004: TRANSFER_PIN
            -->
            <ELEM type="dword" bigEndian="1" >0</ELEM>
              <!--
                00                       bTimeOut
                00                       bTimeOut2
                82                       bmFormatString: bytes, pos 0, 
                                         left justify, BCD
                00                       bmPINBlockString (PIN length)
                00                       bmPINLengthFormat
                00                       bInsertionOffsetOld
                08                       bInsertionOffsetNew
                08                       wPINMaxExtraDigit: max
                04                       wPINMaxExtraDigit: min
                01                       bConfirmPin
                02                       bEntryValidationCondition
                00                       bNumberMessage
                04 09                    wLangId
                00                       bMsgIndex1
                00                       bMsgIndex2
                00                       bMsgIndex3
                00 00 00                 bTeoPrologue
                0d 00 00 00              ulDataLength
                00 24 00 00              APDU
                10 20 20 20 20 20 20 20  lc, data
                   20 20 20 20 20 20 20
              -->
            <ELEM type="bytes" storedAs="bytes" >
              00 00
              82 00 00
              00 08
              08 04 03 02
              03 
              00 00 
              00 00 00 
              00 00 00
              15 00 00 00
              00 24 00 
            </ELEM>
            <ELEM name="pid" type="byte" />
            <ELEM type="bytes" storedAs="bytes" >
              10 
              20 20 20 20 20 20 20 20
              20 20 20 20 20 20 20 20
            </ELEM>
          </APDU>
        </send>
        <results>
          <result sw1="0x90" type="success" >
            PIN ok
          </result>
            <result sw1="0x63" sw2="0xc0" type="error" >
            Bad PIN (only one try left !)
          </result>
            <result sw1="0x63" type="error" >Bad PIN</result>
            <result sw1="0x63" sw2="0xc1" type="error" >
            Bad PIN (only two tries left !)
          </result>
            <result sw1="0x63" sw2="0xc2" type="error" >
            Bad PIN (only three tries left !)
          </result>
            <result sw1="0x69" sw2="0x83" type="error" >
            Card seems to be destroyed, this might have the following reasons:
             1) you entered a bad PIN too often
             2) the card is of a new and yet unknown type
          </result>
            <result sw1="0x64" sw2="0x00" type="error" >
            Verification aborted due to timeout
          </result>
            <result sw1="0x64" sw2="0x01" type="error" >
            Verification aborted by user
          </result>
        </results>
      </command>


      <!-- Secure PIN verification using the reader's keypad: ASCII -->
      <!-- Command for SCM X32 -->
      <command name="IsoPerformVerification_Ascii" target="reader" 
               driver="generic_pcsc" reader="ccid_scm_x32" >
        <send>
          <APDU>
            <ELEM type="byte" >6</ELEM>
            <ELEM type="dword" bigEndian="1" >0</ELEM>
            <ELEM type="bytes" storedAs="bytes" >
              00 00
              82 00 00
              08 04 02
              00 00 00 00 00 00 00
              0d 00 00 00
              00 20 00 
            </ELEM>
            <ELEM name="pid" type="byte" />
            <ELEM type="bytes" storedAs="bytes" >
              08 20 20 20 20 20 20 20 20
            </ELEM>
          </APDU>
        </send>
        <results>
          <result sw1="0x90" type="success" >
            PIN ok
          </result>
            <result sw1="0x63" sw2="0xc0" type="error" >
            Bad PIN (only one try left !)
          </result>
            <result sw1="0x63" type="error" >Bad PIN</result>
            <result sw1="0x63" sw2="0xc1" type="error" >
            Bad PIN (only two tries left !)
          </result>
            <result sw1="0x63" sw2="0xc2" type="error" >
            Bad PIN (only three tries left !)
          </result>
            <result sw1="0x69" sw2="0x83" type="error" >
            Card seems to be destroyed, this might have the following reasons:
             1) you entered a bad PIN too often
             2) the card is of a new and yet unknown type
          </result>
            <result sw1="0x64" sw2="0x00" type="error" >
            Verification aborted due to timeout
          </result>
            <result sw1="0x64" sw2="0x01" type="error" >
            Verification aborted by user
          </result>
        </results>
      </command>

    </commands>
  </card>
</cards>