mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-13 19:56:08 +03:00
Add command to submit the CHV (pin code)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
1 parent
6dc5145663
commit
6576ce1886
1 file changed
+5
@@ -416,6 +416,11 @@ class SimCardCommands(object):
|
|||||||
|
|
||||||
def reset_card(self):
|
def reset_card(self):
|
||||||
return self._tp.reset_card()
|
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)
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user