Exemplo n.º 1
0
 def __generate_cryptoflex(self):
     """Generate the Filesystem and SAM of a cryptoflex card"""
     from virtualsmartcard.cards.cryptoflex import CryptoflexMF
     from virtualsmartcard.cards.cryptoflex import CryptoflexSAM
     self.mf = CryptoflexMF()
     self.mf.append(TransparentStructureEF(parent=self.mf, fid=0x0002,
                    filedescriptor=0x01,
                    data="\x00\x00\x00\x01\x00\x01\x00\x00"))  # EF.ICCSN
     self.sam = CryptoflexSAM(self.mf)