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
e0d9d88cd5
cards: Add Fairwaves SIM implementation.
...
Change-Id: Ia10ac433d3b0482bdf727c31f65a10042152797b
2018-01-10 17:16:31 +09:00
Alexander Chemeris
8ad124a0b8
cards: Implement card type autodetection based on ATR.
...
Change-Id: I1099a96626c0ce74243b47a8fdfa25b0d76a1ef3
2018-01-10 17:12:10 +09:00
Alexander Chemeris
47c73abd04
pySim-prog: Replace magic numbers with a readable EF file name.
...
Change-Id: Ibda7d5a4132971e884f6d760baf20cd33025a2af
2018-01-10 17:12:10 +09:00
Alexander Chemeris
a51592e180
pySim-prog: ADM code can be longer 8 digits, it's implementation specific.
...
E.g. Fairwaves SIM cards have longer ADM codes.
Change-Id: I87d61764eeba4bcf7525ee4778cb8f244930db9b
2018-01-10 17:12:10 +09:00
Alexander Chemeris
eb6807d3cb
cards: Extend Card class with access functions for some of the standard EF files.
...
Change-Id: Icb7227fa7ebc837fccab456cbfad529f6ee81a28
2018-01-10 17:12:10 +09:00
Alexander Chemeris
d2d660a935
Add methods to get ATR for a card or a link.
...
Implemented for both serial and PCSC readers.
Change-Id: Ic12e4b115d24a8b7e483a5603dd6cec90ad289cc
2018-01-10 17:12:10 +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
Alexander Chemeris
067f69cade
ts_51_011: A file with MF/DF/EF constants from TS 51 011
...
pySim has been using magic numbers to access various files which makes it hard
to read, maintain and extend. With this file in place we can start replacing all
those magic numbers with human readable names lile EF['IMSI'] instead of
['3F00', '7F20', '6F07'].
Change-Id: I38f5d36d16b41b5d516a6a3e2ec1d09637883932
2018-01-10 14:04:08 +09:00
Alexander Chemeris
d17ca3ddd8
Fix comment: Ki -> OPC
...
Change-Id: I566cf7bc658c730b4381c0f145bfc4f805cca42a
2018-01-10 14:04:06 +09: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
6e58914746
Add an utility to read data from a SIM card.
2013-07-13 08:50:55 +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
Alexander Chemeris
21885249cf
Implement setting of EF.ACC file in GrcardSim and _MagicSimBase
...
From: Alexander Chemeris <Alexander.Chemeris@gmail.com >
Signed-off-by: Sylvain Munaut <tnt@246tNt.com >
2013-07-02 15:19:09 +02:00