Project

General

Profile

Bug #6398 ยป interpreter.patch

n4n5, 03/09/2024 09:33 PM

View differences:

pySim/commands.py
675 675
            raise RuntimeError('Failed to %s chv_no 0x%02X with code 0x%s, %i tries left.' %
676 676
                               (op_name, chv_no, b2h(pin_code).upper(), int(sw[3])))
677 677
        if sw != '9000':
678
            raise SwMatchError(sw, '9000')
678
            raise SwMatchError(sw, '9000', self._tp.sw_interpreter)
679 679

  
680 680
    def verify_chv(self, chv_no: int, code: Hexstr) -> ResTuple:
681 681
        """Verify a given CHV (Card Holder Verification == PIN)
    (1-1/1)
    Add picture from clipboard (Maximum size: 48.8 MB)