FreeRDP
smartcard-interpreter.py File Reference

Data Structures

class  smartcard-interpreter.ApplicationDummy
 
class  smartcard-interpreter.ApplicationPIV
 
class  smartcard-interpreter.ApplicationGids
 

Namespaces

 smartcard-interpreter
 

Functions

def smartcard-interpreter.createAppByAid (aid)
 

Variables

dictionary smartcard-interpreter.CMD_NAMES
 
dictionary smartcard-interpreter.AIDs
 
dictionary smartcard-interpreter.FIDs
 
dictionary smartcard-interpreter.DOs
 
dictionary smartcard-interpreter.ERROR_CODES
 
dictionary smartcard-interpreter.PIV_OIDs
 
 smartcard-interpreter.fin = open(sys.argv[1], "r")
 
int smartcard-interpreter.lineno = 0
 
int smartcard-interpreter.lastCmd = 0
 
 smartcard-interpreter.lastSelect = None
 
bool smartcard-interpreter.lastSelectFCI = False
 
 smartcard-interpreter.lastGetItem = None
 
 smartcard-interpreter.currentApp = None
 
string smartcard-interpreter.body = ''
 
string smartcard-interpreter.recvKey = 'pbRecvBuffer: { '
 
 smartcard-interpreter.pos = l.find(recvKey)
 
bool smartcard-interpreter.toCard = False
 
 smartcard-interpreter.pos2 = l.find(' }', pos)
 
string smartcard-interpreter.sendKey = 'pbSendBuffer: { '
 
 smartcard-interpreter.bytes = codecs.decode(body, 'hex')
 
 smartcard-interpreter.cla
 
 smartcard-interpreter.ins
 
 smartcard-interpreter.p1
 
 smartcard-interpreter.p2
 
dictionary smartcard-interpreter.cmdName = CMD_NAMES.get(ins, "<COMMAND 0x%x>" % ins)
 
 smartcard-interpreter.lc = bytes[4]
 
int smartcard-interpreter.i = 5
 
 smartcard-interpreter.aid = bytes[i:i+lc].hex()
 
string smartcard-interpreter.lastSelectT = "FCI"
 
dictionary smartcard-interpreter.P2_DATA_QUALIFIER
 
string smartcard-interpreter.pin = ''
 
int smartcard-interpreter.fileId = p1 * 256 + p2
 
 smartcard-interpreter.ret = currentApp.getData(fileId, bytes)
 
int smartcard-interpreter.status = bytes[-1] + bytes[-2] * 256