from smartcard.util import toHexString
expectedReaders = ['Gemplus USB SmartCard Reader 0', 'SchlumbergerSema Reflex USB v.2 0']
expectedATRs = [[59, 152, 150, 192, 10, 31, 198, 99, 241, 0, 0, 131, 0, 144, 0, 156], [59, 63, 148, 0, 128, 105, 175, 3, 7, 6, 104, 0, 135, 10, 14, 131, 62, 159, 22]]
expectedATRinReader = {}
for i in xrange(len(expectedReaders)):
expectedATRinReader[expectedReaders[i]]=expectedATRs[i]
expectedReaderForATR = {}
for i in xrange(len(expectedReaders)):
expectedReaderForATR[toHexString(expectedATRs[i])]=expectedReaders[i]
expectedReaderGroups = [ 'SCard$DefaultReaders' ]
|