class documentation

class ISO7816_8ErrorChecker(ErrorChecker):

View In Hierarchy

ISO7816-8 error checker.

This error checker raises the following exceptions:

This checker does not raise exceptions on undefined sw1 values, e.g.:

  • sw1 sw2
  • 62 any
  • 6f any

and on undefined sw2 values, e.g.:

  • sw1 sw2
  • 66 81 82
  • 67 any except 00

Use another checker in the error checking chain, e.g., the ISO7816_4_SW1ErrorChecker or ISO7816_4ErrorChecker, to raise exceptions on these undefined values.

Method __call__ Called to test data, sw1 and sw2 for error.
def __call__(self, data, sw1, sw2):

Called to test data, sw1 and sw2 for error.

Derived classes must raise a smartcard.sw.SWExceptions upon error.

Parameters
dataapdu response data
sw1apdu data status word 1
sw2apdu data status word 2