Ticket #112: opensc-debug.log

File opensc-debug.log, 60.3 KB (added by snurniko, 2 years ago)

opensc debug file (while trying to sign with d-trust card)

Line 
1===================================
2opensc version: 0.11.1
3Keypad detected
40: Detecting smart card
5sc.c:168:sc_detect_card_presence: called
6sc.c:173:sc_detect_card_presence: returning with: 1
70: Connecting to smart card
8card.c:110:sc_connect_card: called
9matching configured ATRs
10matching built-in ATRs
11trying driver: cardos
12ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
13ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
14ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:03:15
15ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:04:12
16ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
17ATR try : 3b:f2:18:00:02:c1:0a:31:fe;55:c8:07:76
18ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
19ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
20ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
21ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
22trying driver: cardos
23ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
24ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
25ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:03:15
26ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:04:12
27ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
28ATR try : 3b:f2:18:00:02:c1:0a:31:fe;55:c8:07:76
29ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
30ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
31ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
32ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
33trying driver: flex
34ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
35ATR try : 3b:95:15:40:20:68:01:02:00:00
36ATR try : 3B:95:15:40:FF:68:01:02:02:01
37ATR try : 3B:95:15:40:FF:68:01:02:02:04
38ATR try : 3B:85:40:20:68:01:01:05:01
39ATR try : 3B:95:94:40:FF:63:01:01:02:01
40ATR try : 3B:95:18:40:FF:64:02:01:01:02
41ATR try : 3B:95:18:40:FF:62:01:02:01:04
42ATR try : 3B:95:18:40:FF:62:04:01:01:05
43ATR try : 3B:E2:00:00:40:20:49:06
44ATR try : 3B:E2:00:00:40:20:49:05
45ATR try : 3B:E2:00:00:40:20:49:07
46ATR try : 3B:85:40:20:68:01:01:03:05
47ATR try : 3B:02:14:50
48ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
49ATR try : 3B:32:15:00:06:80
50ATR try : 3B:32:15:00:06:95
51ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
52ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
53ATR try : 3B:16:94:81:10:06:01:81:3F
54ATR try : 3B:16:94:81:10:06:01:81:2F
55trying driver: cyberflex
56ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
57ATR try : 3b:95:15:40:20:68:01:02:00:00
58ATR try : 3B:95:15:40:FF:68:01:02:02:01
59ATR try : 3B:95:15:40:FF:68:01:02:02:04
60ATR try : 3B:85:40:20:68:01:01:05:01
61ATR try : 3B:95:94:40:FF:63:01:01:02:01
62ATR try : 3B:95:18:40:FF:64:02:01:01:02
63ATR try : 3B:95:18:40:FF:62:01:02:01:04
64ATR try : 3B:95:18:40:FF:62:04:01:01:05
65ATR try : 3B:E2:00:00:40:20:49:06
66ATR try : 3B:E2:00:00:40:20:49:05
67ATR try : 3B:E2:00:00:40:20:49:07
68ATR try : 3B:85:40:20:68:01:01:03:05
69ATR try : 3B:02:14:50
70ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
71ATR try : 3B:32:15:00:06:80
72ATR try : 3B:32:15:00:06:95
73ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
74ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
75ATR try : 3B:16:94:81:10:06:01:81:3F
76ATR try : 3B:16:94:81:10:06:01:81:2F
77trying driver: gpk
78ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
79ATR try : 3B:27:00:80:65:A2:04:01:01:37
80ATR try : 3B:27:00:80:65:A2:05:01:01:37
81ATR try : 3B:27:00:80:65:A2:0C:01:01:37
82ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
83ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
84ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
85ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
86ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
87trying driver: miocos
88ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
89ATR try : 3B:9D:94:40:23:00:68:10:11:4D:69:6F:43:4F:53:00:90:00
90ATR try : 3B:9D:94:40:23:00:68:20:01:4D:69:6F:43:4F:53:00:90:00
91trying driver: mcrd
92ATR     : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
93ATR try : 3B:FF:94:00:FF:80:B1:FE:45:1F:03:00:68:D2:76:00:00:28:FF:05:1E:31:80:00:90:00:23
94matched: MICARDO 2.1
95select_part (0x0030, kind=2)
96apdu.c:504:sc_transmit_apdu: called
97card.c:289:sc_lock: called
98card.c:316:sc_unlock: called
99Calling card logout function
100called; type=2, path=3f00
101card-mcrd.c:941:mcrd_select_file: called
102ef=0, curpath=3F00
103select_part (0x3F00, kind=0)
104apdu.c:504:sc_transmit_apdu: called
105card-mcrd.c:697:do_select: returning with: 0
106  result=0, ef=0, curpath=3F00
107card.c:563:sc_select_file: returning with: 0
108card-mcrd.c:697:do_select: returning with: 0
109card.c:606:sc_read_record: called
110apdu.c:504:sc_transmit_apdu: called
111card.c:289:sc_lock: called
112card.c:316:sc_unlock: called
113Calling card logout function
114called; type=2, path=3f00
115card-mcrd.c:941:mcrd_select_file: called
116ef=0, curpath=3F00
117select_part (0x3F00, kind=0)
118apdu.c:504:sc_transmit_apdu: called
119card-mcrd.c:697:do_select: returning with: 0
120  result=0, ef=0, curpath=3F00
121card.c:563:sc_select_file: returning with: 0
122card info: MICARDO 2.1, 5001, 0x0
123card.c:220:sc_connect_card: returning with: 0
1240: Detecting Framework
125pkcs15.c:656:sc_pkcs15_bind: called
126card.c:289:sc_lock: called
127trying normal pkcs15 processing
128called; type=2, path=3f002f00
129card-mcrd.c:941:mcrd_select_file: called
130ef=0, curpath=3F00
131select_part (0x2F00, kind=2)
132apdu.c:504:sc_transmit_apdu: called
133processing FCI bytes
134  file identifier: 0x2F00
135  bytes in file: 84
136  shareable: no
137  type: working EF
138  EF structure: 1
139referenced EF_rule record 8 not found
140  result=0, ef=1, curpath=3F002F00
141card.c:563:sc_select_file: returning with: 0
142called; 84 bytes at index 0
143apdu.c:504:sc_transmit_apdu: called
144iso7816.c:132:iso7816_read_binary: returning with: 84
145card.c:439:sc_read_binary: returning with: 84
146called, left=84, depth 0
147Looking for 'dirRecord', tag 0x11000001
148decoding 'dirRecord'
149 called, left=41, depth 1
150Looking for 'aid', tag 0x1000000f
151 decoding 'aid'
152Looking for 'label', tag 0x10000010, OPTIONAL
153 decoding 'label'
154Looking for 'path', tag 0x10000011, OPTIONAL
155 decoding 'path'
156Looking for 'ddo', tag 0x11000013, OPTIONAL
157not present
158asn1.c:1120:asn1_decode: returning with: 0
159asn1.c:1120:asn1_decode: returning with: 0
160called, left=41, depth 0
161Looking for 'dirRecord', tag 0x11000001
162decoding 'dirRecord'
163 called, left=39, depth 1
164Looking for 'aid', tag 0x1000000f
165 decoding 'aid'
166Looking for 'label', tag 0x10000010, OPTIONAL
167 decoding 'label'
168Looking for 'path', tag 0x10000011, OPTIONAL
169 decoding 'path'
170Looking for 'ddo', tag 0x11000013, OPTIONAL
171not present
172asn1.c:1120:asn1_decode: returning with: 0
173asn1.c:1120:asn1_decode: returning with: 0
174called; type=2, path=3f005015
175card-mcrd.c:941:mcrd_select_file: called
176ef=1, curpath=3F002F00
177select_part (0x3F00, kind=1)
178apdu.c:504:sc_transmit_apdu: called
179card-mcrd.c:697:do_select: returning with: 0
180select_part (0x5015, kind=2)
181apdu.c:504:sc_transmit_apdu: called
182File not found
183card-mcrd.c:697:do_select: returning with: -1201
184select_part (0x5015, kind=1)
185apdu.c:504:sc_transmit_apdu: called
186card-mcrd.c:697:do_select: returning with: 0
187select_part (0x0030, kind=2)
188apdu.c:504:sc_transmit_apdu: called
189card-mcrd.c:697:do_select: returning with: 0
190card.c:606:sc_read_record: called
191apdu.c:504:sc_transmit_apdu: called
192iso7816.c:158:iso7816_read_record: returning with: 5
193card.c:610:sc_read_record: returning with: 5
194card.c:606:sc_read_record: called
195apdu.c:504:sc_transmit_apdu: called
196iso7816.c:158:iso7816_read_record: returning with: 5
197card.c:610:sc_read_record: returning with: 5
198card.c:606:sc_read_record: called
199apdu.c:504:sc_transmit_apdu: called
200iso7816.c:158:iso7816_read_record: returning with: 5
201card.c:610:sc_read_record: returning with: 5
202card.c:606:sc_read_record: called
203apdu.c:504:sc_transmit_apdu: called
204iso7816.c:158:iso7816_read_record: returning with: 5
205card.c:610:sc_read_record: returning with: 5
206card.c:606:sc_read_record: called
207apdu.c:504:sc_transmit_apdu: called
208iso7816.c:158:iso7816_read_record: returning with: 17
209card.c:610:sc_read_record: returning with: 17
210card.c:606:sc_read_record: called
211apdu.c:504:sc_transmit_apdu: called
212iso7816.c:158:iso7816_read_record: returning with: 5
213card.c:610:sc_read_record: returning with: 5
214card.c:606:sc_read_record: called
215apdu.c:504:sc_transmit_apdu: called
216Record not found
217iso7816.c:155:iso7816_read_record: returning with: -1202
218card.c:610:sc_read_record: returning with: -1202
219new EF_Rule file loaded (6 records)
220select_part (0x0013, kind=2)
221apdu.c:504:sc_transmit_apdu: called
222File not found
223card-mcrd.c:697:do_select: returning with: -1201
224no EF_KeyD file available
225  result=0, ef=0, curpath=3F005015
226card.c:563:sc_select_file: returning with: 0
227called; type=2, path=3f0050155031
228card-mcrd.c:941:mcrd_select_file: called
229ef=0, curpath=3F005015
230select_part (0x5031, kind=2)
231apdu.c:504:sc_transmit_apdu: called
232processing FCI bytes
233  file identifier: 0x5031
234  bytes in file: 40
235  shareable: no
236  type: working EF
237  EF structure: 1
238rule for record 5:
23984 01 D6 A4 07 95 01 80 83 02 00 03 80 01 01 90 ................
24000                                              .
241  AM_DO: cmd[I] D6 .
242     SC: auth 95 01 80 83 02 00 03 .......
243  AM_DO: 01
244     SC: always
245  result=0, ef=1, curpath=3F0050155031
246card.c:563:sc_select_file: returning with: 0
247called; 40 bytes at index 0
248apdu.c:504:sc_transmit_apdu: called
249iso7816.c:132:iso7816_read_binary: returning with: 40
250card.c:439:sc_read_binary: returning with: 40
251called, left=40, depth 0, choice
252Looking for 'privateKeys', tag 0x21000000, CHOICE
253decoding 'privateKeys'
254 called, left=6, depth 1
255Looking for 'path', tag 0x1000010
256 decoding 'path'
257  called, left=4, depth 2
258Looking for 'path', tag 0x4
259  decoding 'path'
260Looking for 'index', tag 0x2, OPTIONAL
261not present
262Looking for 'length', tag 0x20000000, OPTIONAL
263not present
264asn1.c:1120:asn1_decode: returning with: 0
265asn1.c:1120:asn1_decode: returning with: 0
266asn1.c:1119:asn1_decode: returning with: 0
267called, left=32, depth 0, choice
268Looking for 'privateKeys', tag 0x21000000, CHOICE
269not present
270Looking for 'publicKeys', tag 0x21000001, CHOICE
271not present
272Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
273not present
274Looking for 'certificates', tag 0x21000004, CHOICE
275decoding 'certificates'
276 called, left=6, depth 1
277Looking for 'path', tag 0x1000010
278 decoding 'path'
279  called, left=4, depth 2
280Looking for 'path', tag 0x4
281  decoding 'path'
282Looking for 'index', tag 0x2, OPTIONAL
283not present
284Looking for 'length', tag 0x20000000, OPTIONAL
285not present
286asn1.c:1120:asn1_decode: returning with: 0
287asn1.c:1120:asn1_decode: returning with: 0
288asn1.c:1119:asn1_decode: returning with: 3
289called, left=24, depth 0, choice
290Looking for 'privateKeys', tag 0x21000000, CHOICE
291not present
292Looking for 'publicKeys', tag 0x21000001, CHOICE
293not present
294Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
295not present
296Looking for 'certificates', tag 0x21000004, CHOICE
297not present
298Looking for 'trustedCertificates', tag 0x21000005, CHOICE
299decoding 'trustedCertificates'
300 called, left=6, depth 1
301Looking for 'path', tag 0x1000010
302 decoding 'path'
303  called, left=4, depth 2
304Looking for 'path', tag 0x4
305  decoding 'path'
306Looking for 'index', tag 0x2, OPTIONAL
307not present
308Looking for 'length', tag 0x20000000, OPTIONAL
309not present
310asn1.c:1120:asn1_decode: returning with: 0
311asn1.c:1120:asn1_decode: returning with: 0
312asn1.c:1119:asn1_decode: returning with: 4
313called, left=16, depth 0, choice
314Looking for 'privateKeys', tag 0x21000000, CHOICE
315not present
316Looking for 'publicKeys', tag 0x21000001, CHOICE
317not present
318Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
319not present
320Looking for 'certificates', tag 0x21000004, CHOICE
321not present
322Looking for 'trustedCertificates', tag 0x21000005, CHOICE
323not present
324Looking for 'usefulCertificates', tag 0x21000006, CHOICE
325not present
326Looking for 'dataObjects', tag 0x21000007, CHOICE
327decoding 'dataObjects'
328 called, left=6, depth 1
329Looking for 'path', tag 0x1000010
330 decoding 'path'
331  called, left=4, depth 2
332Looking for 'path', tag 0x4
333  decoding 'path'
334Looking for 'index', tag 0x2, OPTIONAL
335not present
336Looking for 'length', tag 0x20000000, OPTIONAL
337not present
338asn1.c:1120:asn1_decode: returning with: 0
339asn1.c:1120:asn1_decode: returning with: 0
340asn1.c:1119:asn1_decode: returning with: 6
341called, left=8, depth 0, choice
342Looking for 'privateKeys', tag 0x21000000, CHOICE
343not present
344Looking for 'publicKeys', tag 0x21000001, CHOICE
345not present
346Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
347not present
348Looking for 'certificates', tag 0x21000004, CHOICE
349not present
350Looking for 'trustedCertificates', tag 0x21000005, CHOICE
351not present
352Looking for 'usefulCertificates', tag 0x21000006, CHOICE
353not present
354Looking for 'dataObjects', tag 0x21000007, CHOICE
355not present
356Looking for 'authObjects', tag 0x21000008, CHOICE
357decoding 'authObjects'
358 called, left=6, depth 1
359Looking for 'path', tag 0x1000010
360 decoding 'path'
361  called, left=4, depth 2
362Looking for 'path', tag 0x4
363  decoding 'path'
364Looking for 'index', tag 0x2, OPTIONAL
365not present
366Looking for 'length', tag 0x20000000, OPTIONAL
367not present
368asn1.c:1120:asn1_decode: returning with: 0
369asn1.c:1120:asn1_decode: returning with: 0
370asn1.c:1119:asn1_decode: returning with: 7
371The following DFs were found:
372  DF type 0, path 6034, index 0, count -1
373  DF type 4, path 6035, index 0, count -1
374  DF type 5, path 6036, index 0, count -1
375  DF type 7, path 6037, index 0, count -1
376  DF type 8, path 6038, index 0, count -1
377called; type=2, path=3f0050155032
378card-mcrd.c:941:mcrd_select_file: called
379ef=1, curpath=3F0050155031
380select_part (0x3F00, kind=1)
381apdu.c:504:sc_transmit_apdu: called
382card-mcrd.c:697:do_select: returning with: 0
383select_part (0x5015, kind=1)
384apdu.c:504:sc_transmit_apdu: called
385card-mcrd.c:697:do_select: returning with: 0
386select_part (0x5032, kind=2)
387apdu.c:504:sc_transmit_apdu: called
388processing FCI bytes
389  file identifier: 0x5032
390  bytes in file: 128
391  shareable: no
392  type: working EF
393  EF structure: 1
394rule for record 5:
39584 01 D6 A4 07 95 01 80 83 02 00 03 80 01 01 90 ................
39600                                              .
397  AM_DO: cmd[I] D6 .
398     SC: auth 95 01 80 83 02 00 03 .......
399  AM_DO: 01
400     SC: always
401  result=0, ef=1, curpath=3F0050155032
402card.c:563:sc_select_file: returning with: 0
403called; 128 bytes at index 0
404apdu.c:504:sc_transmit_apdu: called
405iso7816.c:132:iso7816_read_binary: returning with: 128
406card.c:439:sc_read_binary: returning with: 128
407called, left=128, depth 0
408Looking for 'TokenInfo', tag 0x1000010
409decoding 'TokenInfo'
410 called, left=57, depth 1
411Looking for 'version', tag 0x2
412 decoding 'version'
413Looking for 'serialNumber', tag 0x4
414 decoding 'serialNumber'
415Looking for 'manufacturerID', tag 0xc, OPTIONAL
416 decoding 'manufacturerID'
417Looking for 'label', tag 0x20000000, OPTIONAL
418 decoding 'label'
419Looking for 'tokenflags', tag 0x3
420 decoding 'tokenflags'
421Looking for 'seInfo', tag 0x1000010, OPTIONAL
422not present
423Looking for 'recordInfo', tag 0x21000001, OPTIONAL
424not present
425Looking for 'supportedAlgorithms', tag 0x21000002, OPTIONAL
426not present
427Looking for 'issuerId', tag 0x20000003, OPTIONAL
428not present
429Looking for 'holderId', tag 0x20000004, OPTIONAL
430not present
431Looking for 'lastUpdate', tag 0x20000005, OPTIONAL
432not present
433Looking for 'preferredLanguage', tag 0x13, OPTIONAL
434not present
435asn1.c:1120:asn1_decode: returning with: 0
436asn1.c:1120:asn1_decode: returning with: 0
437card.c:316:sc_unlock: called
438Calling card logout function
439called; type=2, path=3f00
440card-mcrd.c:941:mcrd_select_file: called
441ef=1, curpath=3F0050155032
442select_part (0x3F00, kind=0)
443apdu.c:504:sc_transmit_apdu: called
444card-mcrd.c:697:do_select: returning with: 0
445  result=0, ef=0, curpath=3F00
446card.c:563:sc_select_file: returning with: 0
447Binding to PKCS#15, rc=0
4480: Detected framework 0. Creating tokens.
449called, path=6038, index=0, count=-1
450card.c:289:sc_lock: called
451called; type=2, path=3f0050156038
452card-mcrd.c:941:mcrd_select_file: called
453ef=0, curpath=3F00
454select_part (0x5015, kind=1)
455apdu.c:504:sc_transmit_apdu: called
456card-mcrd.c:697:do_select: returning with: 0
457select_part (0x6038, kind=2)
458apdu.c:504:sc_transmit_apdu: called
459processing FCI bytes
460  file identifier: 0x6038
461  bytes in file: 168
462  shareable: no
463  type: working EF
464  EF structure: 1
465rule for record 6:
46680 01 03 90 00 .....
467  AM_DO: 03
468     SC: always
469  result=0, ef=1, curpath=3F0050156038
470card.c:563:sc_select_file: returning with: 0
471called; 168 bytes at index 0
472apdu.c:504:sc_transmit_apdu: called
473iso7816.c:132:iso7816_read_binary: returning with: 168
474card.c:439:sc_read_binary: returning with: 168
475card.c:316:sc_unlock: called
476Calling card logout function
477called; type=2, path=3f00
478card-mcrd.c:941:mcrd_select_file: called
479ef=1, curpath=3F0050156038
480select_part (0x3F00, kind=0)
481apdu.c:504:sc_transmit_apdu: called
482card-mcrd.c:697:do_select: returning with: 0
483  result=0, ef=0, curpath=3F00
484card.c:563:sc_select_file: returning with: 0
485called, left=168, depth 0
486Looking for 'pin', tag 0x1000010
487decoding 'pin'
488 called, left=45, depth 1
489Looking for 'commonObjectAttributes', tag 0x1000010
490 decoding 'commonObjectAttributes'
491  called, left=14, depth 2
492Looking for 'label', tag 0xc, OPTIONAL
493  decoding 'label'
494Looking for 'flags', tag 0x3, OPTIONAL
495  decoding 'flags'
496Looking for 'authId', tag 0x4, OPTIONAL
497  decoding 'authId'
498Looking for 'userConsent', tag 0x2, OPTIONAL
499not present
500Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
501not present
502asn1.c:1120:asn1_decode: returning with: 0
503Looking for 'classAttributes', tag 0x1000010
504 decoding 'classAttributes'
505  called, left=3, depth 2
506Looking for 'authId', tag 0x4
507  decoding 'authId'
508asn1.c:1120:asn1_decode: returning with: 0
509Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
510not present
511Looking for 'typeAttributes', tag 0x21000001
512 decoding 'typeAttributes'
513  called, left=22, depth 2
514Looking for 'pinAttributes', tag 0x1000010
515  decoding 'pinAttributes'
516   called, left=20, depth 3
517Looking for 'pinFlags', tag 0x3
518   decoding 'pinFlags'
519Looking for 'pinType', tag 0xa
520   decoding 'pinType'
521Looking for 'minLength', tag 0x2
522   decoding 'minLength'
523Looking for 'storedLength', tag 0x2
524   decoding 'storedLength'
525Looking for 'maxLength', tag 0x2, OPTIONAL
526not present
527Looking for 'pinReference', tag 0x20000000, OPTIONAL
528   decoding 'pinReference'
529Looking for 'padChar', tag 0x4, OPTIONAL
530   decoding 'padChar'
531Looking for 'lastPinChange', tag 0x18, OPTIONAL
532not present
533Looking for 'path', tag 0x1000010, OPTIONAL
534not present
535asn1.c:1120:asn1_decode: returning with: 0
536asn1.c:1120:asn1_decode: returning with: 0
537asn1.c:1120:asn1_decode: returning with: 0
538asn1.c:1120:asn1_decode: returning with: 0
539called, left=121, depth 0
540Looking for 'pin', tag 0x1000010
541decoding 'pin'
542 called, left=84, depth 1
543Looking for 'commonObjectAttributes', tag 0x1000010
544 decoding 'commonObjectAttributes'
545  called, left=28, depth 2
546Looking for 'label', tag 0xc, OPTIONAL
547  decoding 'label'
548Looking for 'flags', tag 0x3, OPTIONAL
549  decoding 'flags'
550Looking for 'authId', tag 0x4, OPTIONAL
551  decoding 'authId'
552Looking for 'userConsent', tag 0x2, OPTIONAL
553not present
554Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
555not present
556asn1.c:1120:asn1_decode: returning with: 0
557Looking for 'classAttributes', tag 0x1000010
558 decoding 'classAttributes'
559  called, left=3, depth 2
560Looking for 'authId', tag 0x4
561  decoding 'authId'
562asn1.c:1120:asn1_decode: returning with: 0
563Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
564not present
565Looking for 'typeAttributes', tag 0x21000001
566 decoding 'typeAttributes'
567  called, left=47, depth 2
568Looking for 'pinAttributes', tag 0x1000010
569  decoding 'pinAttributes'
570   called, left=45, depth 3
571Looking for 'pinFlags', tag 0x3
572   decoding 'pinFlags'
573Looking for 'pinType', tag 0xa
574   decoding 'pinType'
575Looking for 'minLength', tag 0x2
576   decoding 'minLength'
577Looking for 'storedLength', tag 0x2
578   decoding 'storedLength'
579Looking for 'maxLength', tag 0x2, OPTIONAL
580not present
581Looking for 'pinReference', tag 0x20000000, OPTIONAL
582   decoding 'pinReference'
583Looking for 'padChar', tag 0x4, OPTIONAL
584   decoding 'padChar'
585Looking for 'lastPinChange', tag 0x18, OPTIONAL
586   decoding 'lastPinChange'
587Looking for 'path', tag 0x1000010, OPTIONAL
588   decoding 'path'
589    called, left=6, depth 4
590Looking for 'path', tag 0x4
591    decoding 'path'
592Looking for 'index', tag 0x2, OPTIONAL
593not present
594Looking for 'length', tag 0x20000000, OPTIONAL
595not present
596asn1.c:1120:asn1_decode: returning with: 0
597asn1.c:1120:asn1_decode: returning with: 0
598asn1.c:1120:asn1_decode: returning with: 0
599asn1.c:1120:asn1_decode: returning with: 0
600asn1.c:1120:asn1_decode: returning with: 0
601called, left=35, depth 0
602Looking for 'pin', tag 0x1000010
603decoding 'pin'
604 called, left=33, depth 1
605Looking for 'commonObjectAttributes', tag 0x1000010
606 decoding 'commonObjectAttributes'
607  called, left=9, depth 2
608Looking for 'label', tag 0xc, OPTIONAL
609  decoding 'label'
610Looking for 'flags', tag 0x3, OPTIONAL
611  decoding 'flags'
612Looking for 'authId', tag 0x4, OPTIONAL
613not present
614Looking for 'userConsent', tag 0x2, OPTIONAL
615not present
616Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
617not present
618asn1.c:1120:asn1_decode: returning with: 0
619Looking for 'classAttributes', tag 0x1000010
620 decoding 'classAttributes'
621  called, left=3, depth 2
622Looking for 'authId', tag 0x4
623  decoding 'authId'
624asn1.c:1120:asn1_decode: returning with: 0
625Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
626not present
627Looking for 'typeAttributes', tag 0x21000001
628 decoding 'typeAttributes'
629  called, left=15, depth 2
630Looking for 'pinAttributes', tag 0x1000010
631  decoding 'pinAttributes'
632   called, left=13, depth 3
633Looking for 'pinFlags', tag 0x3
634   decoding 'pinFlags'
635Looking for 'pinType', tag 0xa
636   decoding 'pinType'
637Looking for 'minLength', tag 0x2
638   decoding 'minLength'
639Looking for 'storedLength', tag 0x2
640   decoding 'storedLength'
641Looking for 'maxLength', tag 0x2, OPTIONAL
642not present
643Looking for 'pinReference', tag 0x20000000, OPTIONAL
644not present
645Looking for 'padChar', tag 0x4, OPTIONAL
646not present
647Looking for 'lastPinChange', tag 0x18, OPTIONAL
648not present
649Looking for 'path', tag 0x1000010, OPTIONAL
650not present
651asn1.c:1120:asn1_decode: returning with: 0
652asn1.c:1120:asn1_decode: returning with: 0
653asn1.c:1120:asn1_decode: returning with: 0
654asn1.c:1120:asn1_decode: returning with: 0
655Found 3 authentication objects
656called, path=6034, index=0, count=-1
657card.c:289:sc_lock: called
658called; type=2, path=3f0050156034
659card-mcrd.c:941:mcrd_select_file: called
660ef=0, curpath=3F00
661select_part (0x5015, kind=1)
662apdu.c:504:sc_transmit_apdu: called
663card-mcrd.c:697:do_select: returning with: 0
664select_part (0x6034, kind=2)
665apdu.c:504:sc_transmit_apdu: called
666processing FCI bytes
667  file identifier: 0x6034
668  bytes in file: 256
669  shareable: no
670  type: working EF
671  EF structure: 1
672rule for record 5:
67384 01 D6 A4 07 95 01 80 83 02 00 03 80 01 01 90 ................
67400                                              .
675  AM_DO: cmd[I] D6 .
676     SC: auth 95 01 80 83 02 00 03 .......
677  AM_DO: 01
678     SC: always
679  result=0, ef=1, curpath=3F0050156034
680card.c:563:sc_select_file: returning with: 0
681called; 256 bytes at index 0
682called; 248 bytes at index 0
683apdu.c:504:sc_transmit_apdu: called
684iso7816.c:132:iso7816_read_binary: returning with: 248
685card.c:439:sc_read_binary: returning with: 248
686called; 8 bytes at index 248
687apdu.c:504:sc_transmit_apdu: called
688iso7816.c:132:iso7816_read_binary: returning with: 8
689card.c:439:sc_read_binary: returning with: 8
690card.c:436:sc_read_binary: returning with: 256
691card.c:316:sc_unlock: called
692Calling card logout function
693called; type=2, path=3f00
694card-mcrd.c:941:mcrd_select_file: called
695ef=1, curpath=3F0050156034
696select_part (0x3F00, kind=0)
697apdu.c:504:sc_transmit_apdu: called
698card-mcrd.c:697:do_select: returning with: 0
699  result=0, ef=0, curpath=3F00
700card.c:563:sc_select_file: returning with: 0
701called, left=256, depth 0, choice
702Looking for 'privateRSAKey', tag 0x1000010, CHOICE, OPTIONAL
703decoding 'privateRSAKey'
704 called, left=54, depth 1
705Looking for 'commonObjectAttributes', tag 0x1000010
706 decoding 'commonObjectAttributes'
707  called, left=20, depth 2
708Looking for 'label', tag 0xc, OPTIONAL
709  decoding 'label'
710Looking for 'flags', tag 0x3, OPTIONAL
711  decoding 'flags'
712Looking for 'authId', tag 0x4, OPTIONAL
713  decoding 'authId'
714Looking for 'userConsent', tag 0x2, OPTIONAL
715  decoding 'userConsent'
716Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
717not present
718asn1.c:1120:asn1_decode: returning with: 0
719Looking for 'classAttributes', tag 0x1000010
720 decoding 'classAttributes'
721  called, left=12, depth 2
722Looking for 'iD', tag 0x4
723  decoding 'iD'
724Looking for 'usage', tag 0x3
725  decoding 'usage'
726Looking for 'native', tag 0x1, OPTIONAL
727not present
728Looking for 'accessFlags', tag 0x3, OPTIONAL
729not present
730Looking for 'keyReference', tag 0x2, OPTIONAL
731  decoding 'keyReference'
732asn1.c:1120:asn1_decode: returning with: 0
733Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
734not present
735Looking for 'typeAttributes', tag 0x21000001
736 decoding 'typeAttributes'
737  called, left=16, depth 2
738Looking for 'privateRSAKeyAttributes', tag 0x1000010
739  decoding 'privateRSAKeyAttributes'
740   called, left=14, depth 3
741Looking for 'value', tag 0x1000010
742   decoding 'value'
743    called, left=8, depth 4
744Looking for 'path', tag 0x4
745    decoding 'path'
746Looking for 'index', tag 0x2, OPTIONAL
747not present
748Looking for 'length', tag 0x20000000, OPTIONAL
749not present
750asn1.c:1120:asn1_decode: returning with: 0
751Looking for 'modulusLength', tag 0x2
752   decoding 'modulusLength'
753Looking for 'keyInfo', tag 0x2, OPTIONAL
754not present
755asn1.c:1120:asn1_decode: returning with: 0
756asn1.c:1120:asn1_decode: returning with: 0
757asn1.c:1120:asn1_decode: returning with: 0
758asn1.c:1119:asn1_decode: returning with: 0
759called, left=200, depth 0, choice
760Looking for 'privateRSAKey', tag 0x1000010, CHOICE, OPTIONAL
761decoding 'privateRSAKey'
762 called, left=52, depth 1
763Looking for 'commonObjectAttributes', tag 0x1000010
764 decoding 'commonObjectAttributes'
765  called, left=18, depth 2
766Looking for 'label', tag 0xc, OPTIONAL
767  decoding 'label'
768Looking for 'flags', tag 0x3, OPTIONAL
769  decoding 'flags'
770Looking for 'authId', tag 0x4, OPTIONAL
771  decoding 'authId'
772Looking for 'userConsent', tag 0x2, OPTIONAL
773not present
774Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
775not present
776asn1.c:1120:asn1_decode: returning with: 0
777Looking for 'classAttributes', tag 0x1000010
778 decoding 'classAttributes'
779  called, left=12, depth 2
780Looking for 'iD', tag 0x4
781  decoding 'iD'
782Looking for 'usage', tag 0x3
783  decoding 'usage'
784Looking for 'native', tag 0x1, OPTIONAL
785not present
786Looking for 'accessFlags', tag 0x3, OPTIONAL
787not present
788Looking for 'keyReference', tag 0x2, OPTIONAL
789  decoding 'keyReference'
790asn1.c:1120:asn1_decode: returning with: 0
791Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
792not present
793Looking for 'typeAttributes', tag 0x21000001
794 decoding 'typeAttributes'
795  called, left=16, depth 2
796Looking for 'privateRSAKeyAttributes', tag 0x1000010
797  decoding 'privateRSAKeyAttributes'
798   called, left=14, depth 3
799Looking for 'value', tag 0x1000010
800   decoding 'value'
801    called, left=8, depth 4
802Looking for 'path', tag 0x4
803    decoding 'path'
804Looking for 'index', tag 0x2, OPTIONAL
805not present
806Looking for 'length', tag 0x20000000, OPTIONAL
807not present
808asn1.c:1120:asn1_decode: returning with: 0
809Looking for 'modulusLength', tag 0x2
810   decoding 'modulusLength'
811Looking for 'keyInfo', tag 0x2, OPTIONAL
812not present
813asn1.c:1120:asn1_decode: returning with: 0
814asn1.c:1120:asn1_decode: returning with: 0
815asn1.c:1120:asn1_decode: returning with: 0
816asn1.c:1119:asn1_decode: returning with: 0
817Found 2 private keys
818Found 0 public keys
819called, path=6035, index=0, count=-1
820card.c:289:sc_lock: called
821called; type=2, path=3f0050156035
822card-mcrd.c:941:mcrd_select_file: called
823ef=0, curpath=3F00
824select_part (0x5015, kind=1)
825apdu.c:504:sc_transmit_apdu: called
826card-mcrd.c:697:do_select: returning with: 0
827select_part (0x6035, kind=2)
828apdu.c:504:sc_transmit_apdu: called
829processing FCI bytes
830  file identifier: 0x6035
831  bytes in file: 256
832  shareable: no
833  type: working EF
834  EF structure: 1
835rule for record 5:
83684 01 D6 A4 07 95 01 80 83 02 00 03 80 01 01 90 ................
83700                                              .
838  AM_DO: cmd[I] D6 .
839     SC: auth 95 01 80 83 02 00 03 .......
840  AM_DO: 01
841     SC: always
842  result=0, ef=1, curpath=3F0050156035
843card.c:563:sc_select_file: returning with: 0
844called; 256 bytes at index 0
845called; 248 bytes at index 0
846apdu.c:504:sc_transmit_apdu: called
847iso7816.c:132:iso7816_read_binary: returning with: 248
848card.c:439:sc_read_binary: returning with: 248
849called; 8 bytes at index 248
850apdu.c:504:sc_transmit_apdu: called
851iso7816.c:132:iso7816_read_binary: returning with: 8
852card.c:439:sc_read_binary: returning with: 8
853card.c:436:sc_read_binary: returning with: 256
854card.c:316:sc_unlock: called
855Calling card logout function
856called; type=2, path=3f00
857card-mcrd.c:941:mcrd_select_file: called
858ef=1, curpath=3F0050156035
859select_part (0x3F00, kind=0)
860apdu.c:504:sc_transmit_apdu: called
861card-mcrd.c:697:do_select: returning with: 0
862  result=0, ef=0, curpath=3F00
863card.c:563:sc_select_file: returning with: 0
864called, left=256, depth 0
865Looking for 'x509Certificate', tag 0x1000010
866decoding 'x509Certificate'
867 called, left=42, depth 1
868Looking for 'commonObjectAttributes', tag 0x1000010
869 decoding 'commonObjectAttributes'
870  called, left=21, depth 2
871Looking for 'label', tag 0xc, OPTIONAL
872  decoding 'label'
873Looking for 'flags', tag 0x3, OPTIONAL
874  decoding 'flags'
875Looking for 'authId', tag 0x4, OPTIONAL
876  decoding 'authId'
877Looking for 'userConsent', tag 0x2, OPTIONAL
878not present
879Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
880not present
881asn1.c:1120:asn1_decode: returning with: 0
882Looking for 'classAttributes', tag 0x1000010
883 decoding 'classAttributes'
884  called, left=3, depth 2
885Looking for 'iD', tag 0x4
886  decoding 'iD'
887Looking for 'authority', tag 0x1, OPTIONAL
888not present
889Looking for 'identifier', tag 0x1000010, OPTIONAL
890not present
891asn1.c:1120:asn1_decode: returning with: 0
892Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
893not present
894Looking for 'typeAttributes', tag 0x21000001
895 decoding 'typeAttributes'
896  called, left=12, depth 2
897Looking for 'x509CertificateAttributes', tag 0x1000010
898  decoding 'x509CertificateAttributes'
899   called, left=10, depth 3
900Looking for 'value', tag 0x0
901    called, left=10, depth 4, choice
902Looking for 'path', tag 0x1000010, CHOICE, OPTIONAL
903    decoding 'path'
904     called, left=8, depth 5
905Looking for 'path', tag 0x4
906     decoding 'path'
907Looking for 'index', tag 0x2, OPTIONAL
908not present
909Looking for 'length', tag 0x20000000, OPTIONAL
910not present
911asn1.c:1120:asn1_decode: returning with: 0
912asn1.c:1119:asn1_decode: returning with: 0
913asn1.c:1120:asn1_decode: returning with: 0
914asn1.c:1120:asn1_decode: returning with: 0
915asn1.c:1120:asn1_decode: returning with: 0
916asn1.c:1120:asn1_decode: returning with: 0
917called, left=212, depth 0
918Looking for 'x509Certificate', tag 0x1000010
919decoding 'x509Certificate'
920 called, left=43, depth 1
921Looking for 'commonObjectAttributes', tag 0x1000010
922 decoding 'commonObjectAttributes'
923  called, left=22, depth 2
924Looking for 'label', tag 0xc, OPTIONAL
925  decoding 'label'
926Looking for 'flags', tag 0x3, OPTIONAL
927  decoding 'flags'
928Looking for 'authId', tag 0x4, OPTIONAL
929  decoding 'authId'
930Looking for 'userConsent', tag 0x2, OPTIONAL
931not present
932Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
933not present
934asn1.c:1120:asn1_decode: returning with: 0
935Looking for 'classAttributes', tag 0x1000010
936 decoding 'classAttributes'
937  called, left=3, depth 2
938Looking for 'iD', tag 0x4
939  decoding 'iD'
940Looking for 'authority', tag 0x1, OPTIONAL
941not present
942Looking for 'identifier', tag 0x1000010, OPTIONAL
943not present
944asn1.c:1120:asn1_decode: returning with: 0
945Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
946not present
947Looking for 'typeAttributes', tag 0x21000001
948 decoding 'typeAttributes'
949  called, left=12, depth 2
950Looking for 'x509CertificateAttributes', tag 0x1000010
951  decoding 'x509CertificateAttributes'
952   called, left=10, depth 3
953Looking for 'value', tag 0x0
954    called, left=10, depth 4, choice
955Looking for 'path', tag 0x1000010, CHOICE, OPTIONAL
956    decoding 'path'
957     called, left=8, depth 5
958Looking for 'path', tag 0x4
959     decoding 'path'
960Looking for 'index', tag 0x2, OPTIONAL
961not present
962Looking for 'length', tag 0x20000000, OPTIONAL
963not present
964asn1.c:1120:asn1_decode: returning with: 0
965asn1.c:1119:asn1_decode: returning with: 0
966asn1.c:1120:asn1_decode: returning with: 0
967asn1.c:1120:asn1_decode: returning with: 0
968asn1.c:1120:asn1_decode: returning with: 0
969asn1.c:1120:asn1_decode: returning with: 0
970called, path=6036, index=0, count=-1
971card.c:289:sc_lock: called
972called; type=2, path=3f0050156036
973card-mcrd.c:941:mcrd_select_file: called
974ef=0, curpath=3F00
975select_part (0x5015, kind=1)
976apdu.c:504:sc_transmit_apdu: called
977card-mcrd.c:697:do_select: returning with: 0
978select_part (0x6036, kind=2)
979apdu.c:504:sc_transmit_apdu: called
980processing FCI bytes
981  file identifier: 0x6036
982  bytes in file: 512
983  shareable: no
984  type: working EF
985  EF structure: 1
986rule for record 5:
98784 01 D6 A4 07 95 01 80 83 02 00 03 80 01 01 90 ................
98800                                              .
989  AM_DO: cmd[I] D6 .
990     SC: auth 95 01 80 83 02 00 03 .......
991  AM_DO: 01
992     SC: always
993  result=0, ef=1, curpath=3F0050156036
994card.c:563:sc_select_file: returning with: 0
995called; 512 bytes at index 0
996called; 248 bytes at index 0
997apdu.c:504:sc_transmit_apdu: called
998iso7816.c:132:iso7816_read_binary: returning with: 248
999card.c:439:sc_read_binary: returning with: 248
1000called; 248 bytes at index 248
1001apdu.c:504:sc_transmit_apdu: called
1002iso7816.c:132:iso7816_read_binary: returning with: 248
1003card.c:439:sc_read_binary: returning with: 248
1004called; 16 bytes at index 496
1005apdu.c:504:sc_transmit_apdu: called
1006iso7816.c:132:iso7816_read_binary: returning with: 16
1007card.c:439:sc_read_binary: returning with: 16
1008card.c:436:sc_read_binary: returning with: 512
1009card.c:316:sc_unlock: called
1010Calling card logout function
1011called; type=2, path=3f00
1012card-mcrd.c:941:mcrd_select_file: called
1013ef=1, curpath=3F0050156036
1014select_part (0x3F00, kind=0)
1015apdu.c:504:sc_transmit_apdu: called
1016card-mcrd.c:697:do_select: returning with: 0
1017  result=0, ef=0, curpath=3F00
1018card.c:563:sc_select_file: returning with: 0
1019called, left=512, depth 0
1020Looking for 'x509Certificate', tag 0x1000010
1021decoding 'x509Certificate'
1022 called, left=53, depth 1
1023Looking for 'commonObjectAttributes', tag 0x1000010
1024 decoding 'commonObjectAttributes'
1025  called, left=6, depth 2
1026Looking for 'label', tag 0xc, OPTIONAL
1027not present
1028Looking for 'flags', tag 0x3, OPTIONAL
1029  decoding 'flags'
1030Looking for 'authId', tag 0x4, OPTIONAL
1031  decoding 'authId'
1032Looking for 'userConsent', tag 0x2, OPTIONAL
1033not present
1034Looking for 'accessControlRules', tag 0x1000010, OPTIONAL
1035not present
1036asn1.c:1120:asn1_decode: returning with: 0
1037Looking for 'classAttributes', tag 0x1000010
1038 decoding 'classAttributes'
1039  called, left=22, depth 2
1040Looking for 'iD', tag 0x4
1041  decoding 'iD'
1042Looking for 'authority', tag 0x1, OPTIONAL
1043not present
1044Looking for 'identifier', tag 0x1000010, OPTIONAL
1045not present
1046asn1.c:1120:asn1_decode: returning with: 0
1047Looking for 'subClassAttributes', tag 0x21000000, OPTIONAL
1048not present
1049Looking for 'typeAttributes', tag 0x21000001
1050 decoding 'typeAttributes'
1051  called, left=19, depth 2
1052Looking for 'x509CertificateAttributes', tag 0x1000010
1053  decoding 'x509CertificateAttributes'
1054   called, left=17, depth 3
1055Looking for 'value', tag 0x0
1056    called, left=17, depth 4, choice
1057Looking for 'path', tag 0x1000010, CHOICE, OPTIONAL
1058    decoding 'path'
1059     called, left=15, depth 5
1060Looking for 'path', tag 0x4
1061     decoding 'path'
1062Looking for 'index', tag 0x2, OPTIONAL
1063     decoding 'index'
1064Looking for 'length', tag 0x20000000, OPTIONAL
1065     decoding 'length'
1066asn1.c:1120:asn1_decode: returning with: 0
1067asn1.c:1119:asn1_decode: returning with: 0
1068asn1.c:1120:asn1_decode: returning with: 0
1069asn1.c:1120:asn1_decode: returning with: 0
1070asn1.c:1120:asn1_decode: returning with: 0
1071asn1.c:1120:asn1_decode: returning with: 0
1072Found 3 certificates
1073pkcs15-cert.c:115:sc_pkcs15_read_certificate: called
1074called, path=3f004016c000, index=0, count=-1
1075card.c:289:sc_lock: called
1076called; type=2, path=3f004016c000
1077card-mcrd.c:941:mcrd_select_file: called
1078ef=0, curpath=3F00
1079select_part (0x4016, kind=1)
1080apdu.c:504:sc_transmit_apdu: called
1081card-mcrd.c:697:do_select: returning with: 0
1082select_part (0xC000, kind=2)
1083apdu.c:504:sc_transmit_apdu: called
1084processing FCI bytes
1085  file identifier: 0xC000
1086  bytes in file: 4096
1087  shareable: no
1088  type: working EF
1089  EF structure: 1
1090referenced EF_rule record 9 not found
1091  result=0, ef=1, curpath=3F004016C000
1092card.c:563:sc_select_file: returning with: 0
1093called; 4096 bytes at index 0
1094called; 248 bytes at index 0
1095apdu.c:504:sc_transmit_apdu: called
1096iso7816.c:132:iso7816_read_binary: returning with: 248
1097card.c:439:sc_read_binary: returning with: 248
1098called; 248 bytes at index 248
1099apdu.c:504:sc_transmit_apdu: called
1100iso7816.c:132:iso7816_read_binary: returning with: 248
1101card.c:439:sc_read_binary: returning with: 248
1102called; 248 bytes at index 496
1103apdu.c:504:sc_transmit_apdu: called
1104iso7816.c:132:iso7816_read_binary: returning with: 248
1105card.c:439:sc_read_binary: returning with: 248
1106called; 248 bytes at index 744
1107apdu.c:504:sc_transmit_apdu: called
1108iso7816.c:132:iso7816_read_binary: returning with: 248
1109card.c:439:sc_read_binary: returning with: 248
1110called; 248 bytes at index 992
1111apdu.c:504:sc_transmit_apdu: called
1112iso7816.c:132:iso7816_read_binary: returning with: 248
1113card.c:439:sc_read_binary: returning with: 248
1114called; 248 bytes at index 1240
1115apdu.c:504:sc_transmit_apdu: called
1116iso7816.c:132:iso7816_read_binary: returning with: 248
1117card.c:439:sc_read_binary: returning with: 248
1118called; 248 bytes at index 1488
1119apdu.c:504:sc_transmit_apdu: called
1120iso7816.c:132:iso7816_read_binary: returning with: 248
1121card.c:439:sc_read_binary: returning with: 248
1122called; 248 bytes at index 1736
1123apdu.c:504:sc_transmit_apdu: called
1124iso7816.c:132:iso7816_read_binary: returning with: 248
1125card.c:439:sc_read_binary: returning with: 248
1126called; 248 bytes at index 1984
1127apdu.c:504:sc_transmit_apdu: called
1128iso7816.c:132:iso7816_read_binary: returning with: 248
1129card.c:439:sc_read_binary: returning with: 248
1130called; 248 bytes at index 2232
1131apdu.c:504:sc_transmit_apdu: called
1132iso7816.c:132:iso7816_read_binary: returning with: 248
1133card.c:439:sc_read_binary: returning with: 248
1134called; 248 bytes at index 2480
1135apdu.c:504:sc_transmit_apdu: called
1136iso7816.c:132:iso7816_read_binary: returning with: 248
1137card.c:439:sc_read_binary: returning with: 248
1138called; 248 bytes at index 2728
1139apdu.c:504:sc_transmit_apdu: called
1140iso7816.c:132:iso7816_read_binary: returning with: 248
1141card.c:439:sc_read_binary: returning with: 248
1142called; 248 bytes at index 2976
1143apdu.c:504:sc_transmit_apdu: called
1144iso7816.c:132:iso7816_read_binary: returning with: 248
1145card.c:439:sc_read_binary: returning with: 248
1146called; 248 bytes at index 3224
1147apdu.c:504:sc_transmit_apdu: called
1148iso7816.c:132:iso7816_read_binary: returning with: 248
1149card.c:439:sc_read_binary: returning with: 248
1150called; 248 bytes at index 3472
1151apdu.c:504:sc_transmit_apdu: called
1152iso7816.c:132:iso7816_read_binary: returning with: 248
1153card.c:439:sc_read_binary: returning with: 248
1154called; 248 bytes at index 3720
1155apdu.c:504:sc_transmit_apdu: called
1156iso7816.c:132:iso7816_read_binary: returning with: 248
1157card.c:439:sc_read_binary: returning with: 248
1158called; 128 bytes at index 3968
1159apdu.c:504:sc_transmit_apdu: called
1160iso7816.c:132:iso7816_read_binary: returning with: 128
1161card.c:439:sc_read_binary: returning with: 128
1162card.c:436:sc_read_binary: returning with: 4096
1163card.c:316:sc_unlock: called
1164Calling card logout function
1165called; type=2, path=3f00
1166card-mcrd.c:941:mcrd_select_file: called
1167ef=1, curpath=3F004016C000
1168select_part (0x3F00, kind=0)
1169apdu.c:504:sc_transmit_apdu: called
1170card-mcrd.c:697:do_select: returning with: 0
1171  result=0, ef=0, curpath=3F00
1172card.c:563:sc_select_file: returning with: 0
1173called, left=1309, depth 0
1174Looking for 'tbsCertificate', tag 0x1000010
1175decoding 'tbsCertificate'
1176 called, left=1029, depth 1
1177Looking for 'version', tag 0x21000000, OPTIONAL
1178 decoding 'version'
1179  called, left=3, depth 2
1180Looking for 'version', tag 0x2
1181  decoding 'version'
1182asn1.c:1120:asn1_decode: returning with: 0
1183Looking for 'serialNumber', tag 0x2
1184 decoding 'serialNumber'
1185Looking for 'signature', tag 0x1000010
1186 decoding 'signature'
1187Looking for 'issuer', tag 0x1000010
1188 decoding 'issuer'
1189Looking for 'validity', tag 0x1000010
1190 decoding 'validity'
1191Looking for 'subject', tag 0x1000010
1192 decoding 'subject'
1193Looking for 'subjectPublicKeyInfo', tag 0x1000010
1194 decoding 'subjectPublicKeyInfo'
1195  called, left=158, depth 2
1196Looking for 'algorithm', tag 0x1000010
1197  decoding 'algorithm'
1198   called, left=13, depth 3
1199Looking for 'algorithm', tag 0x6
1200   decoding 'algorithm'
1201Looking for 'nullParam', tag 0x5, OPTIONAL
1202   decoding 'nullParam'
1203asn1.c:1120:asn1_decode: returning with: 0
1204Looking for 'subjectPublicKey', tag 0x3
1205  decoding 'subjectPublicKey'
1206asn1.c:1120:asn1_decode: returning with: 0
1207Looking for 'extensions', tag 0x21000003, OPTIONAL
1208 decoding 'extensions'
1209  called, left=519, depth 2
1210Looking for 'x509v3', tag 0x1000010, OPTIONAL
1211  decoding 'x509v3'
1212   called, left=515, depth 3
1213Looking for 'certificatePolicies', tag 0x1000010, OPTIONAL
1214   decoding 'certificatePolicies'
1215Looking for 'subjectKeyIdentifier', tag 0x1000010, OPTIONAL
1216   decoding 'subjectKeyIdentifier'
1217Looking for 'crlDistributionPoints', tag 0x1000010, OPTIONAL
1218   decoding 'crlDistributionPoints'
1219Looking for 'authorityKeyIdentifier', tag 0x1000010, OPTIONAL
1220   decoding 'authorityKeyIdentifier'
1221Looking for 'keyUsage', tag 0x1000010, OPTIONAL
1222   decoding 'keyUsage'
1223asn1.c:1120:asn1_decode: returning with: 0
1224asn1.c:1120:asn1_decode: returning with: 0
1225asn1.c:1120:asn1_decode: returning with: 0
1226Looking for 'signatureAlgorithm', tag 0x1000010
1227decoding 'signatureAlgorithm'
1228 called, left=13, depth 1
1229Looking for 'algorithm', tag 0x6
1230 decoding 'algorithm'
1231Looking for 'nullParam', tag 0x5, OPTIONAL
1232 decoding 'nullParam'
1233asn1.c:1120:asn1_decode: returning with: 0
1234Looking for 'signatureValue', tag 0x3
1235decoding 'signatureValue'
1236asn1.c:1120:asn1_decode: returning with: 0
1237called, left=139, depth 0
1238Looking for 'publicKeyCoefficients', tag 0x1000010
1239decoding 'publicKeyCoefficients'
1240 called, left=136, depth 1
1241Looking for 'modulus', tag 0x2
1242 decoding 'modulus'
1243Looking for 'exponent', tag 0x2
1244 decoding 'exponent'
1245asn1.c:1120:asn1_decode: returning with: 0
1246asn1.c:1120:asn1_decode: returning with: 0
1247pkcs15-cert.c:115:sc_pkcs15_read_certificate: called
1248called, path=3f004016c500, index=0, count=-1
1249card.c:289:sc_lock: called
1250called; type=2, path=3f004016c500
1251card-mcrd.c:941:mcrd_select_file: called
1252ef=0, curpath=3F00
1253select_part (0x4016, kind=1)
1254apdu.c:504:sc_transmit_apdu: called
1255card-mcrd.c:697:do_select: returning with: 0
1256select_part (0xC500, kind=2)
1257apdu.c:504:sc_transmit_apdu: called
1258processing FCI bytes
1259  file identifier: 0xC500
1260  bytes in file: 2768
1261  shareable: no
1262  type: working EF
1263  EF structure: 1
1264referenced EF_rule record 9 not found
1265  result=0, ef=1, curpath=3F004016C500
1266card.c:563:sc_select_file: returning with: 0
1267called; 2768 bytes at index 0
1268called; 248 bytes at index 0
1269apdu.c:504:sc_transmit_apdu: called
1270iso7816.c:132:iso7816_read_binary: returning with: 248
1271card.c:439:sc_read_binary: returning with: 248
1272called; 248 bytes at index 248
1273apdu.c:504:sc_transmit_apdu: called
1274iso7816.c:132:iso7816_read_binary: returning with: 248
1275card.c:439:sc_read_binary: returning with: 248
1276called; 248 bytes at index 496
1277apdu.c:504:sc_transmit_apdu: called
1278iso7816.c:132:iso7816_read_binary: returning with: 248
1279card.c:439:sc_read_binary: returning with: 248
1280called; 248 bytes at index 744
1281apdu.c:504:sc_transmit_apdu: called
1282iso7816.c:132:iso7816_read_binary: returning with: 248
1283card.c:439:sc_read_binary: returning with: 248
1284called; 248 bytes at index 992
1285apdu.c:504:sc_transmit_apdu: called
1286iso7816.c:132:iso7816_read_binary: returning with: 248
1287card.c:439:sc_read_binary: returning with: 248
1288called; 248 bytes at index 1240
1289apdu.c:504:sc_transmit_apdu: called
1290iso7816.c:132:iso7816_read_binary: returning with: 248
1291card.c:439:sc_read_binary: returning with: 248
1292called; 248 bytes at index 1488
1293apdu.c:504:sc_transmit_apdu: called
1294iso7816.c:132:iso7816_read_binary: returning with: 248
1295card.c:439:sc_read_binary: returning with: 248
1296called; 248 bytes at index 1736
1297apdu.c:504:sc_transmit_apdu: called
1298iso7816.c:132:iso7816_read_binary: returning with: 248
1299card.c:439:sc_read_binary: returning with: 248
1300called; 248 bytes at index 1984
1301apdu.c:504:sc_transmit_apdu: called
1302iso7816.c:132:iso7816_read_binary: returning with: 248
1303card.c:439:sc_read_binary: returning with: 248
1304called; 248 bytes at index 2232
1305apdu.c:504:sc_transmit_apdu: called
1306iso7816.c:132:iso7816_read_binary: returning with: 248
1307card.c:439:sc_read_binary: returning with: 248
1308called; 248 bytes at index 2480
1309apdu.c:504:sc_transmit_apdu: called
1310iso7816.c:132:iso7816_read_binary: returning with: 248
1311card.c:439:sc_read_binary: returning with: 248
1312called; 40 bytes at index 2728
1313apdu.c:504:sc_transmit_apdu: called
1314iso7816.c:132:iso7816_read_binary: returning with: 40
1315card.c:439:sc_read_binary: returning with: 40
1316card.c:436:sc_read_binary: returning with: 2768
1317card.c:316:sc_unlock: called
1318Calling card logout function
1319called; type=2, path=3f00
1320card-mcrd.c:941:mcrd_select_file: called
1321ef=1, curpath=3F004016C500
1322select_part (0x3F00, kind=0)
1323apdu.c:504:sc_transmit_apdu: called
1324card-mcrd.c:697:do_select: returning with: 0
1325  result=0, ef=0, curpath=3F00
1326card.c:563:sc_select_file: returning with: 0
1327called, left=1341, depth 0
1328Looking f