Commit Graph

486 Commits

Author SHA1 Message Date
Gerrit Code Review
5d3c997816 Update notes for submitted changes
* pySim-shell: Fix regression in 'apdu' command on cards without profile
* global_platform: Fix INSTALL [for personalization]
* pylint: global_platform/__init__.py
* pylint: construct.py
* pylint: tlv.py
2024-02-05 18:20:59 +00:00
Gerrit Code Review
e3335ed362 Update notes for submitted changes
* pylint: utils.py
* pylint: ts_102_222.py
2024-02-05 17:18:46 +00:00
Gerrit Code Review
54f26ac457 Update notes for submitted changes
* pylint: filesystem.py
* pylint: commands.py
* pylint: pySim/euicc.py
* pylint: runtime.py
* pylint: ara_m.py
* pylint: ts_102_221.py
* pylint: apdu/ts_102_221.py
2024-02-05 17:09:13 +00:00
Gerrit Code Review
fe938f9bb7 Update notes for submitted changes
* pylint: ts_31_102.py
* pylint: sysmocom_sja2.py
* pylint: cdma_ruim.py
* pylint: global_platform/scp.py
* pylint: esim/saip/oid.py
* pylint: esim/saip/templates.py
* pylint: esim/saip/personalization.py
* pylint: esim/rsp.py
* pylint: esim/x509_cert.py
* pylint: pySim/esim/bsp.py
* pylint: apdu/__init__.py
* pylint: apdu/ts_31_102.py
* pylint: apdu_source/pyshark_rspro
* pylint: apdu_source/pyshark_gsmtap
* pylint: apdu_source/gsmtap.py
* pylint: apdu_source/__init__.py
* pylint: transport/__init__.py
* pylint: transport/serial.py
* pylint: transport/pcsc.py
* pylint: transport/modem_atcmd.py
2024-02-05 17:05:40 +00:00
Gerrit Code Review
e98cd10c3c Update notes for submitted changes
* pylint: transport/calypso.py
* pylint: gsm_r.py
* pylint: cat.py
* pylint: app.py
* pylint: ts_31_102_telecom.py
* pylint: profile.py
* pylint: sms.py
* pylint: ota.py
* pylint: exceptions.py
* pylint: cards.py
* pylint: gsmtap.py
2024-02-05 17:04:56 +00:00
Gerrit Code Review
d2d8db831f Update notes for submitted changes
* pylint: card_key_provider.py, card_handler.py, iso7816_4.py, jsonpath.py
* global_platform: Add DEK (key) encryption support
* global_platform: INSTALL [for install] support
* construct: Add StripTrailerAdapter
2024-02-05 16:56:30 +00:00
Gerrit Code Review
fecbcf1180 Update notes for submitted changes
* global_platform: KCV support for PUT KEY
* Be more conservative in our imports
* contrib/jenkins.sh: include tests/*.py in pylint
* make our tests pass pylint
2024-02-04 23:58:23 +00:00
Gerrit Code Review
5e20dbd064 Update notes for submitted changes
* Implement Global Platform SCP03
* rename global_platform.scp02 to global_platform.scp
* Contstrain argparse integers to permitted range
* global_platform: Fix --key-id argument
* global_platform: add delete_key and delete_card_content
* global_platform: add set_status command
* global_platform: Add install_for_personalization command
* pySim-shell: Make 'apdu' command use logical (and secure) channel
* Introduce GlobalPlatform SCP02 implementation
2024-02-04 18:00:16 +00:00
Gerrit Code Review
034f84bc07 Update notes for submitted changes
* requirements.txt: Switch to osmocom fork of asn1tools
* esim.saip: More type annotations
* esim.saip: Move OID to separate sub-module
2024-01-29 20:11:19 +00:00
Gerrit Code Review
522eb402e0 Update notes for submitted changes
* saip.personalization: Fix ICCID fillFileContent replacement
* saip.personalization: Also drop any fillFileOffset
2024-01-29 06:32:33 +00:00
Gerrit Code Review
849d6f7e49 Update notes for submitted changes
* [cosmetic] ara_m: Give a spec reference for the PERM-AR-DO
* runtime: Reset selected_file_fcp[_hex] if SELECT returns no data
* ara_m: Use GlobalPlatform SELECT decoding
* ara_m: Permit encoding of empty AID (--aid '') in ARA-M rules
2024-01-27 21:25:38 +00:00
Gerrit Code Review
8b0c399940 Update notes for submitted changes
* osmo-smdpp: Constrain selection of CI certificate
* global_platform: Add shell command for PUT KEY
2024-01-26 17:24:09 +00:00
Gerrit Code Review
3fbf66803f Update notes for submitted changes
* docs: Add missing global_platform store_data command docs
* add contrib/eidtool.py: Tool for checking + computing EID checksum
* docs: Update osmo-smdpp with pointer to sysmoEUICC1-C2T and SGP.26
2024-01-25 18:40:34 +00:00
Gerrit Code Review
333bde59b3 Update notes for submitted changes
* osmo-smdpp: Implement eUICC + EUM certificate signature chain validation
* Move X.509 related code from osmo-smdpp to pySim.esim.x509_cert
* New pySim.esim.x509_cert module for X.509 certificate handling
2024-01-24 08:45:44 +00:00
Gerrit Code Review
0c697ca23d Update notes for submitted changes
* pySim.utils: Support datetime.datetime in JsonEncoder
* osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as python dict
2024-01-22 16:51:48 +00:00
Gerrit Code Review
dc3b9ac06e Update notes for submitted changes
* Fix encoding of decoded/json data in update_{record_binary}_decoded
2024-01-18 18:14:37 +00:00
Gerrit Code Review
debda964d2 Update notes for submitted changes
* pySim-shell: Permit 'reset' command also in unqeuipped stage
2024-01-16 18:48:52 +00:00
Gerrit Code Review
ab07b6fb14 Update notes for submitted changes
* euicc: Implement EID checksum verification + computation
* ts_102_221: Better explain 'selected file invalidated'
2024-01-16 18:17:41 +00:00
Gerrit Code Review
58c6930227 Update notes for submitted changes
* global_platform: More definitions to support key loading
* TLV: Add DGI encoding of "GP Scripting Language Annex B"
2024-01-16 18:04:31 +00:00
Gerrit Code Review
d6b686afe1 Update notes for submitted changes
* global_platform: Implement generic store_data command
2024-01-14 16:44:03 +00:00
Gerrit Code Review
fe8f7b3c43 Update notes for submitted changes
* euicc: Migrate ECASD + ISD-R over to global_platform.CardApplicationSD
* Constrain user input to hex-string in argparse
2024-01-14 16:33:27 +00:00
Gerrit Code Review
dec4b5b9b5 Update notes for submitted changes
* euicc: Fix decoding of SubjectKeyIdentifier.
2024-01-10 16:05:10 +00:00
Gerrit Code Review
496b928fa7 Update notes for submitted changes
* pySim.saip.*: Support for parsing / operating on eSIM profiles
* Initial proof-of-concept SM-DP+ for GSMA consumer eSIM RSP
2024-01-09 21:37:12 +00:00
Gerrit Code Review
d3ed54f813 Update notes for submitted changes
* pySim-shell: Update manual with examples for using with eUICC ISD-R
2024-01-09 09:02:43 +00:00
Gerrit Code Review
9d516dd765 Update notes for submitted changes
* euicc: Fix eUICC list_notifications command
2024-01-08 12:10:22 +00:00
Gerrit Code Review
a087261d6d Update notes for submitted changes
* euicc: Fix delete_profile command
2024-01-08 12:10:17 +00:00
Gerrit Code Review
68df75d5c0 Update notes for submitted changes
* Allow logger to do lazy evaluation of format strings
2024-01-08 12:10:11 +00:00
Gerrit Code Review
86f992562a Update notes for submitted changes
* add contrib/unber.py utility
2024-01-08 12:10:04 +00:00
Gerrit Code Review
e3b050447b Update notes for submitted changes
* Add pySim.esim.bsp module implementing BSP (BPP Protection Protocol)
2024-01-07 19:42:20 +00:00
Gerrit Code Review
a8da350d21 Update notes for submitted changes
* ts_31_103: Add TLV + construct for EF_NAFKCA
* ts_31_103: Add construct for EF.GBABP and EF.GBANL
* construct: avoid StreamError exceptions due to files containing all-ff
* ts_31_102: Start to use construct for EF.SUCI_Calc_Info
2024-01-04 20:43:47 +00:00
Gerrit Code Review
aaab184c5f Update notes for submitted changes
* fileystem/tlv: remove unused imports
2024-01-03 10:00:50 +00:00
Gerrit Code Review
6abc4059a2 Update notes for submitted changes
* sysmocom_sja2: Implement EF_CHV files using construct
* test_files: Test decoder also with ff-padded input
* tests_files.py: Reduce code duplication
* Fix TLV_IE_Collection.from_tlv in certain situations
* ts_31_102: Implement decoders/encoders for EFs below DF.HNB
* support UCS-2 characters in EF.MMSUP, EF.ADN, EF.SPN, EF.PNN, EF.ECC
* Implement convoluted encoding of UCS-2 as per TS 102 221 Annex A
2023-12-29 19:02:44 +00:00
Gerrit Code Review
0e443645d9 Update notes for submitted changes
* add PlmnAdapter for decoding PLMN bcd-strings like 262f01 to 262-01
2023-12-29 17:52:18 +00:00
Gerrit Code Review
216f1771c5 Update notes for submitted changes
* Fix enumeration of GlobbalPlatformISDR during card_init()
2023-12-28 07:05:26 +00:00
Gerrit Code Review
3f34255d76 Update notes for submitted changes
* global_platform: Add support for key types of v2.3.1 (including AES)
* global_platform: Add TLV test data for Key Information Data
* global_platform: Correctly decode Key Information Data
* Add TLV decoder test data
2023-12-27 15:40:54 +00:00
Gerrit Code Review
d621eb5fa3 Update notes for submitted changes
* data-driven TLV unit data test support
* tlv: Fix from_dict() symmetry
2023-12-27 15:27:15 +00:00
Gerrit Code Review
7d8ca62ff1 Update notes for submitted changes
* filesystem: use pySim.utils.build_construct()
2023-12-27 15:11:02 +00:00
Gerrit Code Review
fc82e6b08d Update notes for submitted changes
* pySim-trace_test.sh: Force termcolor to suppress color generation
2023-12-23 10:08:57 +00:00
Gerrit Code Review
1d7114b262 Update notes for submitted changes
* construct/tlv: Pass optional 'context' into construct decoder/encoder
2023-12-23 09:15:47 +00:00
Gerrit Code Review
bbffc731a9 Update notes for submitted changes
* docs/shell: extend the introduction part; link to video presentation
2023-12-23 09:14:59 +00:00
Gerrit Code Review
ca08ea9109 Update notes for submitted changes
* additional encode/decode test data for various files
* 31.102 + 51.011: Fix encode/decode of EF.CFIS
* fix encode/decode of xPLMNwAcT
2023-12-23 09:14:32 +00:00
Gerrit Code Review
c29f3006cf Update notes for submitted changes
* test/test_files: set maxDiff attribute
* tests: use case-insensitive compare of hex strings
2023-12-22 10:55:49 +00:00
Gerrit Code Review
b81b175c08 Update notes for submitted changes
* transport: Extend the documentation for each transport driver
2023-12-21 12:12:45 +00:00
Gerrit Code Review
a1a7e8b831 Update notes for submitted changes
* transport: Move printing of reader number/name to generic code
2023-12-21 11:41:23 +00:00
Gerrit Code Review
b19a61a980 Update notes for submitted changes
* transport/pcsc: Allow opening PC/SC readers by a regex of their name
2023-12-21 11:37:58 +00:00
Gerrit Code Review
8eee510c0a Update notes for submitted changes
* transport: Pass argparse.Namespace directly into transport classes
2023-12-21 11:31:57 +00:00
Gerrit Code Review
6d760f2b1e Update notes for submitted changes
* move {enc,dec}_addr_tlv functions from pySim.util to pySim.legacy.util
* isim: Replace legacy imperative address TLV encoder/decoder with construct
* bertlv_parse_len: Fix input data is smaller than num length octets
* usim: Properly decode/encode IPv4 + IPv6 addresses
* usim: ePDGId + ePDGSelection: Fix encoder/decoder + add test cases
* usim: Add EF.ePDGSelection + EF.ePDGSelectionEm support
* USIM: add support for EG.ePDGIdEm (Emergency ePDG)
2023-12-17 10:46:31 +00:00
Gerrit Code Review
503a090fa1 Update notes for submitted changes
* filesystem: fix typo
* runtime: refactor file selection methods select and select_file
* filesystem: use sort path when selecting an application
2023-12-16 19:45:59 +00:00
Gerrit Code Review
a2a31795fc Update notes for submitted changes
* runtime: explain how file probing works
2023-12-13 09:02:30 +00:00
Gerrit Code Review
2c0b9795cf Update notes for submitted changes
* euicc: Fix TLV IE definitions for SetNickname{Req,Resp}
* euicc: Fix encoding of Lc value in STORE DATA
* euicc: the ICCID TLV object uses bcd-swapped-nibble encoding
2023-12-07 22:33:59 +00:00