示例#1
0
def getinfo(connection: CardConnectionDecorator) -> dict:
    atr = ATR(connection.getATR())
    hb = toHexString(atr.getHistoricalBytes())
    cardname = hb[-17:-12]
    name = cardnameMap.get(cardname, "Unknown " + str(cardname))
    return {
        "Name": name,
        "T0": atr.isT0Supported(),
        "T1": atr.isT1Supported(),
        "T15": atr.isT15Supported()
    }
 def getATR(self):
     """Replace first BYTE of ATR by 3F"""
     atr = CardConnectionDecorator.getATR(self)
     return [0x3f] + atr[1:]
示例#3
0
 def getATR(self):
     """Replace first BYTE of ATR by 3F"""
     atr = CardConnectionDecorator.getATR(self)
     return [0x3f] + atr[1:]