|
| __init__ (self, aid) |
|
| getAID (self) |
|
| selectResult (self, fci, status, body) |
|
| getData (self, fileId, bytes) |
|
| getDataResult (self, status, body) |
|
| mse (self, body) |
|
| mseResult (self, status, body) |
|
| pso (self, body) |
|
| psoResult (self, status, body) |
|
| getResponse (self, status, body) |
|
| getResponseResult (self, status, body) |
|
GlobalPlatform application
Definition at line 177 of file smartcard-interpreter.py.
◆ __init__()
smartcard-interpreter.ApplicationGpc.__init__ |
( |
|
self, |
|
|
|
aid |
|
) |
| |
Definition at line 180 of file smartcard-interpreter.py.
180 def __init__(self, aid):
181 self.aid = aid
182 self.lastGetData = None
183
◆ getAID()
smartcard-interpreter.ApplicationGpc.getAID |
( |
|
self | ) |
|
◆ getData()
smartcard-interpreter.ApplicationGpc.getData |
( |
|
self, |
|
|
|
fileId, |
|
|
|
bytes |
|
) |
| |
Definition at line 190 of file smartcard-interpreter.py.
190 def getData(self, fileId, bytes):
191 tags = {
192 0x42: 'Issuer Identification Number',
193 0x45: 'Card Image Number',
194 0x66: 'Card Data',
195 0x67: 'Card Capability Information'
196 }
197 self.lastGetData = fileId
198 return 'getData(%s)\n' % tags.get(fileId, '<unknown 0x%x>' % fileId)
199
◆ getDataResult()
smartcard-interpreter.ApplicationGpc.getDataResult |
( |
|
self, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
Definition at line 200 of file smartcard-interpreter.py.
200 def getDataResult(self, status, body):
201 if self.lastGetData == 0x66:
202
203 pass
204 return 'getDataResult(0x%x) = %s\n' %(status, body.hex())
205
◆ getResponse()
smartcard-interpreter.ApplicationGpc.getResponse |
( |
|
self, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
◆ getResponseResult()
smartcard-interpreter.ApplicationGpc.getResponseResult |
( |
|
self, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
◆ mse()
smartcard-interpreter.ApplicationGpc.mse |
( |
|
self, |
|
|
|
body |
|
) |
| |
◆ mseResult()
smartcard-interpreter.ApplicationGpc.mseResult |
( |
|
self, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
◆ pso()
smartcard-interpreter.ApplicationGpc.pso |
( |
|
self, |
|
|
|
body |
|
) |
| |
◆ psoResult()
smartcard-interpreter.ApplicationGpc.psoResult |
( |
|
self, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
◆ selectResult()
smartcard-interpreter.ApplicationGpc.selectResult |
( |
|
self, |
|
|
|
fci, |
|
|
|
status, |
|
|
|
body |
|
) |
| |
Definition at line 187 of file smartcard-interpreter.py.
187 def selectResult(self, fci, status, body):
188 return 'selectResult(fci=%s, status=0x%x) = %s\n' %(fci, status, body.hex())
189
◆ aid
smartcard-interpreter.ApplicationGpc.aid |
◆ lastGetData
smartcard-interpreter.ApplicationGpc.lastGetData |
The documentation for this class was generated from the following file: