This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: verify signatures | |
# TODO: clean up the APDU code | |
# Some documentation on the ELS format: https://isap.sejm.gov.pl/isap.nsf/download.xsp/WDU20062241634/O/D20061634.pdf | |
from smartcard.System import readers | |
from binascii import hexlify, unhexlify | |
from pyasn1_modules import rfc2315 | |
from pyasn1.codec.der.decoder import decode as der_decoder | |
from pyasn1.type import univ |