add new tool pinpad-test.py

This commit is contained in:
NIIBE Yutaka
2011-12-16 16:42:09 +09:00
parent e2a4be1444
commit 1145fe0ad8
4 changed files with 198 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ class GnukToken(object):
count += 1
def cmd_select_openpgp(self):
apdu = [0x00, 0xa4, 0x04, 0x0c, 6, 0xd2, 0x76, 0x00, 0x01, 0x24, 0x01 ]
apdu = [0x00, 0xa4, 0x04, 0x00, 6, 0xd2, 0x76, 0x00, 0x01, 0x24, 0x01 ]
response, sw1, sw2 = self.connection.transmit(apdu)
if not (sw1 == 0x90 and sw2 == 0x00):
raise ValueError, "cmd_select_openpgp"