pysim/pySim
Harald Welte 9a75410a88 utils: Fix BER-TLV tag decode for multi-byte tags
We cannot simply skip anything that has 0xFF as first byte to detect
the padding after the end of a TLV object:

0xFF may very well be a valid first octet of a multi-octet TAG:

Tags of private class (11) with constructed (1) payload will have 0xFF
as first octet.

So let's expand the check to only detect padding in case of either only
a single byte FF being left, or two FF following each other [with
whatever suffix].

Change-Id: I5d64ce9ef1d973804daabae0b15c2e2349e6fab9
2021-10-21 14:23:19 +02:00
..
transport Add API + shell command for sending TERMINAL PROFILE to card 2021-10-14 16:41:57 +02:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
card_handler.py card_handler: clean-up 2021-10-11 10:56:44 +02:00
card_key_provider.py [pylint] Mark abstract CardKeyProvider.get() method as such 2021-05-02 20:22:15 +00:00
cards.py cards: remove "auto_once" from possible ctype options 2021-10-13 16:27:18 +02:00
cat.py cat: Fix SMS/ENVELOPE related IE tag definitions 2021-10-14 16:16:23 +02:00
commands.py pySim-shell: Add suspend_uicc command 2021-10-21 14:12:13 +02:00
construct.py construct: Recursive normalization of construct parse result 2021-06-05 10:47:17 +02:00
exceptions.py Add more documentation to the classes/methods 2021-04-02 21:08:35 +02:00
filesystem.py pySim-shell: allow card insertion at runtime 2021-10-15 10:36:55 +02:00
gsm_r.py pySim-shell: Add support for GSM-R SIM Cards with DF.EIRENE 2021-10-21 10:05:47 +02:00
jsonpath.py pySim-shell: JSONpath support for updating files/records 2021-04-07 16:45:12 +00:00
sysmocom_sja2.py sysmocom_sja2: Properly decode EF.USIM_SQN freshness 2021-10-16 10:46:05 +02:00
tlv.py tlv: Fix recursive initialization from_dict() 2021-10-21 14:12:13 +02:00
ts_31_102.py ts_31_10x: add a class for CardApplicationXSIM 2021-10-18 14:18:33 +02:00
ts_31_103.py ts_31_10x: add a class for CardApplicationXSIM 2021-10-18 14:18:33 +02:00
ts_51_011.py ts_51_011: Add encoder for EF.SST 2021-10-15 18:24:28 +00:00
ts_102_221.py ts_102_221: Add construct for contents of EF.UMPC 2021-06-05 10:47:17 +02:00
utils.py utils: Fix BER-TLV tag decode for multi-byte tags 2021-10-21 14:23:19 +02:00