Add command to submit the CHV (pin code)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut
2010-12-06 20:00:27 +01:00
parent 6dc5145663
commit 6576ce1886

View File

@@ -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)
# }}}