aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpySim.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pySim.py b/pySim.py
index 9bd3a2c..75e93ad 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)
+
# }}}