mirror of https://gerrit.osmocom.org/pysim
0ec147513c
When programming or reading a SIM with an IMSI shorter than 15, the IMSI value is incorrectly encoded/decoded. The code pads the the IMSI value with 0xF from the left but padding from the right would be correct. It also encodes the length as half the number of digits in the IMSI (rounded up). This isn't correct for even length IMSIs. With even length IMSIs, the odd/even parity bit bumps the last digit into an extra byte, which should be counted as well. - Fix endcoding of IMSI value - Fix decoding of IMSI value Change-Id: I9ae4ca4eb7c2965e601a7108843d052ff613beb9 Patch-by: Ben Foxmoore Closes: SYS#3552 |
||
---|---|---|
.. | ||
transport | ||
__init__.py | ||
cards.py | ||
commands.py | ||
exceptions.py | ||
ts_51_011.py | ||
utils.py |