diff --git a/pySim.py b/pySim.py index 9bd3a2c0..75e93ad3 100755 --- a/pySim.py +++ b/pySim.py @@ -416,6 +416,11 @@ class SimCardCommands(object): def reset_card(self): return self._tp.reset_card() + + def verify_chv(self, chv_no, code): + fc = rpad(b2h(code), 16) + return self.send_apdu('a02000' + ('%02x' % chv_no) + '08' + fc) + # }}}