File: card.xml

package info (click to toggle)
libchipcard2 2.1.9-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 7,052 kB
  • ctags: 3,761
  • sloc: ansic: 53,628; xml: 11,689; sh: 8,909; makefile: 1,394; cpp: 400
file content (151 lines) | stat: -rw-r--r-- 5,082 bytes parent folder | download | duplicates (4)
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
<cards>
  <card name="card" >

    <commands>

      <!-- Secure PIN verification using the reader's keypad: FPIN2 -->
      <command name="IsoPerformVerification_Fpin2" target="reader" 
               driver="cyberjack_ctapi">
        <send>
	  			<APDU>
  	    		<ELEM type="dword">0x20180100</ELEM>
	  			</APDU>
	  			<DATA>
	    			<ELEM type="bytes" storedAs="bytes" >
              52 0f 02 06 00 20 00 
            </ELEM>
            <elem name="pid" type="byte" />
	    			<ELEM type="bytes" storedAs="bytes" >
              08 28 ff ff ff ff ff ff ff
            </ELEM>
          </DATA>
				</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 name="IsoPerformVerification_Ascii" target="reader" 
               driver="cyberjack_ctapi">
        <send>
	  			<APDU>
  	    		<ELEM type="dword">0x20180100</ELEM>
	  			</APDU>
	  			<DATA>
	    			<ELEM type="bytes" storedAs="bytes" >
              52 0f 01 06 00 20 00
            </ELEM>
            <ELEM name="pid" type="byte" />
	    			<ELEM type="bytes" storedAs="bytes" >
              08 20 20 20 20 20 20 20 20
            </ELEM>
          </DATA>
				</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>


      <command name="IsoPerformModification_Ascii" 
               target="reader" driver="cyberjack_ctapi" >
        <send>
	  			<APDU>
  	    		<ELEM type="dword">0x20190100</ELEM>
	  			</APDU>
	  			<DATA>
	    			<ELEM type="bytes" storedAs="bytes" >
              52 18 01 06 0e 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>
          </DATA>
				</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>
      		<result sw1="0x69" sw2="0x85" type="error" >
            PIN is still initial PIN, please change it first.
          </result>
      		<result sw1="0x6a" sw2="0x88" type="error" >
            Unknown PIN id.
          </result>
				</results>
      </command>


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