comparison doc/Low-level-commands @ 58:871281cb0555

doc/Low-level-commands: apdu-checksw documented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 23 Mar 2021 00:21:02 +0000
parents da6e9d0b2ee6
children
comparison
equal deleted inserted replaced
57:bccf028921bb 58:871281cb0555
192 The sole argument is a raw string of bytes (quotes are needed if there are 192 The sole argument is a raw string of bytes (quotes are needed if there are
193 spaces between bytes), and the APDU needs to be given exactly as it is sent in 193 spaces between bytes), and the APDU needs to be given exactly as it is sent in
194 the T=0 protocol: 5 bytes of header (including the length byte) followed by 194 the T=0 protocol: 5 bytes of header (including the length byte) followed by
195 data bytes, if any. After executing the APDU exchange, the apdu command simply 195 data bytes, if any. After executing the APDU exchange, the apdu command simply
196 prints the SW response code from the SIM. 196 prints the SW response code from the SIM.
197
198 A different form of the raw APDU command is provided for use in custom command
199 scripts:
200
201 apdu-checksw "xx xx xx xx xx ..." YYZZ
202
203 This command takes two arguments at the argv level: the first is the same string
204 of bytes as in the basic apdu command (will need to be quoted if it contains
205 spaces between bytes), and the second argument is the expected SW response from
206 the SIM. If the SW response from the SIM is exactly as expected, the execution
207 of the command is considered to be successful; if the SW response is different,
208 an error is reported and script execution is stopped.