Skip to content

Changes

Started by upstream project gerrit-pysim #2811
Started 20 hr ago
Queued 10 sec

Summary

  1. pySim/euicc: fix encoding/decoding of Iccid (details)
Commit 61b77e5726012975ba49315f839b100cb08fda4e by pmaier@sysmocom.de
pySim/euicc: fix encoding/decoding of Iccid

The class Iccid uses a BcdAdapter to encoded/decode the ICCID. This
works fine for ICCIDs that have an even (20) number of digits. In case
the digit count is odd (19), the ICCID the last digit requires padding.

Let's switch to PaddedBcdAdapter for encoding/decoding, to ensure that
odd-length ICCIDs are padded automatically.

Change-Id: I527a44ba454656a0d682ceb590eec6d9d0ac883a
Related: OS#6868
The file was modifiedtests/pySim-shell_test/euicc/test_gen_notif.script
The file was modifiedpySim/euicc.py
The file was modifiedtests/pySim-shell_test/euicc/get_profiles_info.ok
The file was modifiedtests/pySim-shell_test/euicc/test.py