Alexander Chemeris
1198ad9e15
utils: Add a function to decode SELECT result for EF files.
...
Change-Id: Ib2af7fe5205654c5277fec01b6b0b10a68e472b9
2018-01-27 02:06:30 +09:00
Alexander Chemeris
cc85a1ee71
utils: Zero-pad MCC and MNC in enc_plmn()
...
Change-Id: I94607f6a87a416d05bd577a29d1466452921d604
2018-01-27 02:05:20 +09:00
Alexander Chemeris
19fffa1db7
Make derive_milenage_opc and calculate_luhn publicly available through utils.py
...
Change-Id: I2effc85fd55da0981de0ada74dcb28b7e8e56a01
2018-01-11 13:06:43 +09:00
Alexander Chemeris
dddbf525da
utils: Fix documentation. 3+3=6 digits equals 3 bytes, not 6
...
Change-Id: I2722d788a69976e1c64a9caf6cf3049af27f9a30
2018-01-10 14:04:17 +09:00
Alexander Chemeris
a5f0ea6979
utils: Functions to encode/decode EF SPN.
...
According to TS 51 011.
Change-Id: Ida184bc5c81cc8c228b8981b703f77d017e53334
2018-01-10 14:04:11 +09:00
Pau Espin
665bd22fc5
utils.py: dec_imsi: Fix ValueError
...
It should fix the following observed error:
~/pysim$ ./pySim-read.py -p0
Reading ...
ICCID:
Traceback (most recent call last):
File "./pySim-read.py", line 99, in <module>
print("IMSI: %s" % (dec_imsi(res),))
File "/home/lab434/pysim/pySim/utils.py", line 57, in dec_imsi
l = int(ef[0:2]) * 2 # Length of the IMSI string
ValueError: invalid literal for int() with base 10: 'ff'
Change-Id: I7d3ecbf9edd190d1941816796cee60e3957d5943
2018-01-02 07:20:57 +00:00
Alexander Chemeris
7be92ff5d2
Move encoder functions for ICCID, IMSI and PLMN to pySim.utils for consistency.
2013-07-13 08:53:21 +02:00
Alexander Chemeris
5e96c3d910
utils: Add functions to decode IMSI and ICCID from EF raw data.
2013-07-13 08:49:03 +02:00
Sylvain Munaut
76504e0a6e
Split all things into a more "library-like" package
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-07 00:24:32 +01:00