sm_emul: ff 00 ff is the ans to ff 00 ff

This commit is contained in:
Christina Quast 2015-05-03 18:02:33 +02:00
parent 08ea861b11
commit fafa54b37c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class SmartCardEmulator:
if cmd[INS] == 0xA4:
resp = [0x9F, 0x16]
elif cmd == [0xff, 0x00, 0xff]:
resp = [0xff]
resp = cmd
elif len(cmd) == 5 and cmd[INS] == 0xC0:
data = self.ans_from_len[cmd[LEN]]
SW = [0x90, 0x00]