Bases: object
Base class for an APDU
utility function to be used in __str__ and __repr__
The data contents of this APDU
Bases: virtualsmartcard.utils.APDU
Class for a command APDU
The CLA attribute of the APDU
The INS attribute of the APDU
The Lc attribute of the APDU
The Le attribute of the APDU
The P1 attribute of the APDU
The P2 attribute of the APDU
utility function to be used in __str__ and __repr__
Return 1, 2, 3 or 4, depending on which ISO case we represent.
The CLA attribute of the APDU
The data contents of this APDU
The INS attribute of the APDU
The Lc attribute of the APDU
The Le attribute of the APDU
The P1 attribute of the APDU
The P2 attribute of the APDU
Parse a full command APDU and assign the values to our object, overwriting whatever there was.
Return this APDU as a binary string
Bases: virtualsmartcard.utils.APDU
Class for a response APDU
The Status Word of this response APDU
The SW1 attribute of the APDU
The SW2 attribute of the APDU
utility function to be used in __str__ and __repr__
The data contents of this APDU
Parse a full response APDU and assign the values to our object, overwriting whatever there was.
Return this APDU as a binary string
The Status Word of this response APDU
The SW1 attribute of the APDU
The SW2 attribute of the APDU
Make a byte property(). This is meta code.
Generates a nice hexdump of data and returns it. Consecutive lines will be indented with indent spaces. When short is true, will instead generate hexdump without adresses and on one line.
Examples: hexdump(‘A’) -> ‘0000: 00 41 .A ‘ hexdump(‘A’, short=True) -> ‘00 41 (.A)’
Parses the Response APDU of a GetStatus command.