Commit Graph

115 Commits

Author SHA1 Message Date
Gerrit Code Review
ebde4f5256 Update notes for submitted changes
* pySim/utils_test.py: prepare this to be executed on Jenkins
* pySim/utils_test.py: use proper shebang for this executable
* Get rid of Python 2 specific compatibility leftovers
2021-03-12 07:25:52 +00:00
Gerrit Code Review
9f8734f2dc Update notes for submitted changes
* ts_51_011: fix bitmask compositing in EF_xPLMNwAcT.enc_act()
2021-03-08 09:17:48 +00:00
Gerrit Code Review
5623c7c7dd Update notes for submitted changes
* Python 2 is deprecated, remove backwards compatibility chunks
2021-03-07 19:36:40 +00:00
Gerrit Code Review
2e1dee1013 Update notes for submitted changes
* transport/pcsc: work around Python 3.5 bug: guard disconnect()
2021-03-07 19:26:08 +00:00
Gerrit Code Review
dfa4647f8e Update notes for submitted changes
* pySim/utils.py: Attempt to support pycryptodpme
2021-03-05 20:39:22 +00:00
Gerrit Code Review
99631e0f84 Update notes for submitted changes
* fix TypeError in derive_milenage_opc()
2021-03-05 20:39:12 +00:00
Gerrit Code Review
cdc6312553 Update notes for submitted changes
* Add a new pySim-shell program
2021-03-03 07:51:10 +00:00
Gerrit Code Review
a71276fd73 Update notes for submitted changes
* start using python3 bytearray for our b2h/h2b types
2021-03-03 07:42:06 +00:00
Gerrit Code Review
b86e4d62e5 Update notes for submitted changes
* commands.py: Introduce a real select_file() method
* commands.py: rename select_file() to select_path()
* move SW matching to a generic utility function
2021-03-03 07:38:45 +00:00
Gerrit Code Review
1f6b4bd656 Update notes for submitted changes
* introduce SwMatchError exception
* utils.py: de-couple sanitize_pin_adm from argparse 'opts'
* cards.py: SJS1 + SJA2: Implement + Expose verify_adm() method
2021-03-02 09:21:36 +00:00
Gerrit Code Review
0748208f26 Update notes for submitted changes
* Remove Python shebang from files where it's not needed
2021-03-01 19:36:40 +00:00
Gerrit Code Review
4a66398f46 Update notes for submitted changes
* serial: do not try to close non existing serial connection
* serial: don't crash if the device does not exist
* utils: catch exceptions during reader initalitation
2021-02-25 22:05:56 +00:00
Gerrit Code Review
f305efefc9 Update notes for submitted changes
* utils.py: Fix for parsing MNC
2021-02-11 13:46:58 +00:00
Gerrit Code Review
39681a6460 Update notes for submitted changes
* pySim-read.py: Add support for reading USIM+ISIM data from third-party UICC
2021-02-03 08:40:33 +00:00
Gerrit Code Review
fefd5b721c Update notes for submitted changes
* Readme.md: update debian deps, add python3-yaml
2021-01-20 19:24:44 +00:00
Gerrit Code Review
a2c5a49d42 Update notes for submitted changes
* pySim-read.py: Enable reading of UICC IARI from ISIM
* sysmoISIM-SJA2: Enable programming of EF.ACC
* sysmoISIM-SJA2: Enable programming of EF.MSISDN
* sysmoISIM-SJA2: Add support for programming IMS public user identity
* sysmoISIM-SJA2: Add support for programming IMS private user identity
* pySim-read.py: Enable reading of EF.IMPU from ISIM
* pySim-read.py: Enable reading of EF.IMPI from ISIM
2021-01-05 15:37:08 +00:00
Gerrit Code Review
01d81dcdef Update notes for submitted changes
* Update ISIM IST table as per the 3GPP TS 31.103 specification V15.6.0
* sysmoISIM-SJA2: Add support for programming IPv4 address for PCSCF
* sysmoISIM-SJA2: Add support for programming IPv4 address for Home ePDG Identifier
2021-01-05 14:23:33 +00:00
Gerrit Code Review
9cbd770d1d Update notes for submitted changes
* utils.py: Support IPv4 decoding for Address TLV object present in EF.ePDGId and EF.ePDGIdEm
* utils.py: Support IPv4 encoding for Address TLV object present in EF.ePDGId and EF.ePDGIdEm
* sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f'
* sysmoISIM-SJA2: Add support for programming IMS Home Network Domain Name
* utils.py: Add helper method to get type of address (FQDN, IPv4, IPv6)
* sysmoISIM-SJA2: Disable Service 95, 99, 115 in EF.UST in case ISIM is present
* pySim-read.py: Enable reading of Home Network Domain Name from ISIM
* sysmoISIM-SJA2: Add support for programming Proxy Call Session Control Function address
2021-01-05 14:22:41 +00:00
Gerrit Code Review
614339bd26 Update notes for submitted changes
* pySim-read.py: Enabled reading P-CSCF address from ISIM
* ts_31_103.py: Add ADF map for files at ISIM ADF
* sysmoISIM-SJA2: Inherit ISIM Card class as SysmoISIMSJA2 UICC contains an ISIM
2021-01-05 14:19:53 +00:00
Gerrit Code Review
19dbf88ea8 Update notes for submitted changes
* cards: Define ISIM Card class
* Re-purpose helper method to be used for parsing Address TLV Object in general
* sysmoISIM-SJA2: Enable Service 106 and 107 after successfully programming EF.ePDGId and EF.ePDGSelection
2021-01-05 14:19:32 +00:00
Gerrit Code Review
78444486fd Update notes for submitted changes
* sysmoISIM-SJA2: Add support for programming EF.ePDGSelection (ePDG Selection Information)
* utils.py: Bugfix for parsing non-programmed EFePDGSelection
2021-01-05 09:53:49 +00:00
Gerrit Code Review
5efea11456 Update notes for submitted changes
* Readme.md: update apt-get invocation for python3 dep.
2020-12-18 10:49:31 +00:00
Gerrit Code Review
6281a5572a Update notes for submitted changes
* make random seed function python3 compatible
2020-10-28 17:27:28 +00:00
Gerrit Code Review
42438a5026 Update notes for submitted changes
* utils.py: Add helper method to encode ePDGSelection info TLV
* pySim-read.py: Enable parsing of EF.ePDGSelection in USIM
* utils.py: Add helper method to parse ePDG Selection info TLV
2020-10-23 15:08:00 +00:00
Gerrit Code Review
40ce5f1258 Update notes for submitted changes
* Whitespace fixes
* Lint fixes: false -> False, missing imports, Index list, not map iter
* Remove unnecessary semicolon
* Fix invocation python2 -> python3
2020-10-19 09:45:36 +00:00
Gerrit Code Review
f0c568aa30 Update notes for submitted changes
* Move reading of USIM service table to generic USIM class
* Move reading of ePDG Id to generic USIM class
2020-10-03 08:08:08 +00:00
Gerrit Code Review
8e1a7df022 Update notes for submitted changes
* Move programminig of ePDG Id to generic USIM class
2020-10-03 07:36:46 +00:00
Gerrit Code Review
0217530e18 Update notes for submitted changes
* Remove redundant hexstr_to_fivebytearr() and hexstr_to_threebytearr() functions
* Use generic function hexstr_to_Nbytearr to convert hex string to 3/5 Bytes array
* utils.py: Add helper method to convert a hex string into array of N bytes string elements
* utils.py: Add helper method to encode Service Table
2020-09-20 09:49:22 +00:00
Gerrit Code Review
dcdcd3d7d4 Update notes for submitted changes
* pySim-read.py: decode contents of EF.AD (Administrative data)
2020-09-20 06:58:36 +00:00
Gerrit Code Review
5810efafee Update notes for submitted changes
* Add new line
* Update UST table as per the latest 3GPP TS 31.102 specification
* sysmoISIM-SJA2: Add support for programming Home ePDG Identifier
2020-09-18 09:29:02 +00:00
Gerrit Code Review
3617f51f4e Update notes for submitted changes
* Remove redundant function read_aid()
* Use the function select_adf_by_aid for selecting an AID
* cards.py: Populate AIDs present in SysmoISIMSJA2 UICC
2020-09-15 20:39:42 +00:00
Gerrit Code Review
38c3790cc1 Update notes for submitted changes
* sysmo-isim-sja2: fix test expectations
2020-09-15 13:46:10 +00:00
Gerrit Code Review
a73e2e77e6 Update notes for submitted changes
* fix 'TabError: inconsistent use of tabs and spaces in indentation'
2020-08-31 15:02:49 +00:00
Gerrit Code Review
f317e8ff6c Update notes for submitted changes
* Add support for ADF_USIM/EF_EHPLMN
2020-08-28 08:55:32 +00:00
Gerrit Code Review
bc0f9a28b3 Update notes for submitted changes
* utils.py: Add helper method to encode ePDG Identifier
2020-07-14 10:33:14 +00:00
Gerrit Code Review
1690207773 Update notes for submitted changes
* pySim-read.py: Enable parsing of Home ePDG Identifier in USIM
* utils.py: Handle parsing of ePDGId TLV with zero length
2020-06-25 20:10:29 +00:00
Gerrit Code Review
c26bed1519 Update notes for submitted changes
* utils.py add LOCI EFs decode functions
2020-06-13 16:25:27 +00:00
Gerrit Code Review
5bc627f200 Update notes for submitted changes
* commands.py: fix read_binary for lengths > 256
2020-06-04 22:13:47 +00:00
Gerrit Code Review
37e1157871 Update notes for submitted changes
* ts_31_102.py: add EF_ADF_map
2020-06-03 06:30:37 +00:00
Gerrit Code Review
35098a39f9 Update notes for submitted changes
* Implement Generic SIM Access interface as per 3GPP TS 27.007
2020-06-03 06:25:44 +00:00
Gerrit Code Review
77ca85998e Update notes for submitted changes
* utils: fix list comprehension in h2s(): ignore upper case padding
2020-05-28 10:03:04 +00:00
Gerrit Code Review
b4ad20e7b7 Update notes for submitted changes
* cards: remove empty erase() methods.
2020-05-23 11:50:14 +00:00
Gerrit Code Review
3db09f4d1e Update notes for submitted changes
* cards: add methods to help erasing of file contents
* utils: do not crash when all bytes of EF.IMSI are 0xFF
2020-05-22 13:11:51 +00:00
Gerrit Code Review
63b18e71f4 Update notes for submitted changes
* commands: add features to verify data written to files
* commands: add method to determine size of a non record oriented file
* pysim-prog: move ADM sanitation to utils.py
2020-05-17 18:55:29 +00:00
Gerrit Code Review
6baf039f09 Update notes for submitted changes
* cards: reset uninitalized EF.AD
2020-05-17 07:34:14 +00:00
Gerrit Code Review
c1c51f14dc Update notes for submitted changes
* Treat MCC and MNC as strings, not integers
2020-05-13 09:52:54 +00:00
Gerrit Code Review
939343355c Update notes for submitted changes
* pySim-prog, pySim-read, do not echo reader id
2020-05-12 18:11:38 +00:00
Gerrit Code Review
f56b90b79e Update notes for submitted changes
* cards: remove len calculation
2020-05-12 18:06:24 +00:00
Gerrit Code Review
2200800f6f Update notes for submitted changes
* Add option to specify MNC length in non-batch programming scnearios
2020-05-12 07:10:53 +00:00
Gerrit Code Review
a40238067e Update notes for submitted changes
* utils.py: Add helper method to parse ePDG Identifier from hex string
* Introduce function for converting bytes list in (hex or int) to string
* Import TLV parsing related function from https://github.com/mitshell/card
2020-05-11 17:25:33 +00:00