pysim/pySim
Philipp Maier 78e32f2b36 utils: fix sw_match()
The SW_match function takes a given status word and compares it against
a pattern that may contain wildcards (x or ?). This works by creating a
masked version of the SW using a pattern first (each hex digit is
replaced by a wildcard charafter if the pattern has a wildcard in the
same position). Once this is done, the resulting masked version is
compared at the pattern. However, the current implementation can not
work, since it compares the input SW against the pattern to decide
wihich chrafters should be masked. The input SW never contains wildcard
charafters.

Change-Id: I805ad32160fcfcb8628bf919b64f7eee0fe03c7e
Related: OS#4963
2021-03-23 12:17:23 +00:00
..
transport Get rid of Python 2 specific compatibility leftovers 2021-03-11 22:59:21 +01:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
card_handler.py Remove Python shebang from files where it's not needed 2021-03-01 17:33:46 +01:00
cards.py cards: remove unnecessary execptions. 2021-03-23 11:54:47 +00:00
commands.py commands: better exception string for authentication failures 2021-03-23 11:54:47 +00:00
exceptions.py pySim/exceptions.py: fix referencing an instance member 2021-03-12 07:32:17 +00:00
filesystem.py filesystem: be more strict in method add_file() 2021-03-22 22:29:49 +01:00
ts_31_102.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_31_103.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_51_011.py ts_51_011: fix bitmask compositing in EF_xPLMNwAcT.enc_act() 2021-03-07 21:52:13 +01:00
ts_102_221.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
utils.py utils: fix sw_match() 2021-03-23 12:17:23 +00:00