FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
smartcard-interpreter.ApplicationGpc Class Reference
Inheritance diagram for smartcard-interpreter.ApplicationGpc:
Collaboration diagram for smartcard-interpreter.ApplicationGpc:

Public Member Functions

 __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)
 

Data Fields

 aid
 
 lastGetData
 

Detailed Description

GlobalPlatform application

Definition at line 177 of file smartcard-interpreter.py.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ getAID()

smartcard-interpreter.ApplicationGpc.getAID (   self)

Definition at line 184 of file smartcard-interpreter.py.

184 def getAID(self):
185 return self.aid
186

◆ 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 # Card Data
203 pass
204 return 'getDataResult(0x%x) = %s\n' %(status, body.hex())
205

◆ getResponse()

smartcard-interpreter.ApplicationGpc.getResponse (   self,
  status,
  body 
)

Definition at line 218 of file smartcard-interpreter.py.

218 def getResponse(self, status, body):
219 return body.hex()
220

◆ getResponseResult()

smartcard-interpreter.ApplicationGpc.getResponseResult (   self,
  status,
  body 
)

Definition at line 221 of file smartcard-interpreter.py.

221 def getResponseResult(self, status, body):
222 return body.hex()
223
224

◆ mse()

smartcard-interpreter.ApplicationGpc.mse (   self,
  body 
)

Definition at line 206 of file smartcard-interpreter.py.

206 def mse(self, body):
207 return body.hex()
208

◆ mseResult()

smartcard-interpreter.ApplicationGpc.mseResult (   self,
  status,
  body 
)

Definition at line 209 of file smartcard-interpreter.py.

209 def mseResult(self, status, body):
210 return body.hex()
211

◆ pso()

smartcard-interpreter.ApplicationGpc.pso (   self,
  body 
)

Definition at line 212 of file smartcard-interpreter.py.

212 def pso(self, body):
213 return body.hex()
214

◆ psoResult()

smartcard-interpreter.ApplicationGpc.psoResult (   self,
  status,
  body 
)

Definition at line 215 of file smartcard-interpreter.py.

215 def psoResult(self, status, body):
216 return body.hex()
217

◆ 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

Field Documentation

◆ aid

smartcard-interpreter.ApplicationGpc.aid

Definition at line 181 of file smartcard-interpreter.py.

◆ lastGetData

smartcard-interpreter.ApplicationGpc.lastGetData

Definition at line 182 of file smartcard-interpreter.py.


The documentation for this class was generated from the following file: