Coding of SW1-SW2



Normal processings

9000   No further qualification
61XX  SW2 indicates the number of response bytes still available

Waring pocessings

62XX  State of non-volatile memory unchanged
          (further qualification in SW2, see table 13)
63XX  State of non-volatile memory changed
          (further qualification in SW2, see table 14)

Execution error

62XX  State of non-volatile memory unchanged
          (SW2 = '00', other values are RFU)
63XX  State of non-volatile memory changed
          (further qualification in SW2, see table 15)

66XX Reesrved for security-related issues
          (not defined in this part of ISO/IEC 7816)

Checking errors

6700   Wrong length
68XX  Functions in CLA not supported
         (further qualification in SW2, see table 16)
69XX  Command not allowed
         (further qualification in SW2, see table 17)
6AXX Wrong parameter(s) P1-P2
         (further qualification in SW2, see table 18)
6B00   Wrong parameter(s) P1-P2
6CXX  Wrong length Le : SW2 indicates the exact
6D00   Instruction code not supported or invalid
6E00   Class not supported
6F00   No precise diagnosis

Table 13  -  Coding of SW2 when SW1 = '62'

'00'  NO information given
'81'  Part of returned data may be corrupted
'82'  End of file /record reached before reading Le bytes
'83'  FCI not formatted according to 5.1.5

Table 14  -  Coding of SW2 when SW = '63'

'00'  No information given
'81'  File filled up by the last write
'CX'  Counter provied by 'X' (valude from 0 to 15)
         (exact meaning depeding on the command)

Table 15  -  Coding of SW2 When SW1 = '65'

'00' No information give
'81' Memory failure

Table 16  -  Coding of SW2 when SW1 = '68'

'00'  No information given
'81'  Logical channel not supported
'82'  Secure messaging not supported

Table 17  -  Coding of SW2 when SW = '69'

'00'  No information given
'81'  Command incompatible with file structure
'82'  Security status not satisfied
'83'  Authentication method blocked
'84'  Referenced data invalidated
'85'  Conditions of use not satisfied
'86'  Command not allowed (no current EF)
'87'  Expected SM data objects missing
'88'  SM data objects incorrect









'회사 > ISO/IEC 7816' 카테고리의 다른 글

Coding of SW1-SW2  (0) 2008.08.18
Trackback 2 Comment 0