Gerrit Code Review
7450934fa6
Update notes for submitted changes
...
* pySim/cat: Decode the "Type of Comand" from numeric value to a string
2024-06-08 18:27:01 +00:00
Gerrit Code Review
bf626f69f8
Update notes for submitted changes
...
* global_platform/euicc: Implement obtaining SCP keys from CardKeyProvider
* CardKeyProvider: Implement support for column-based transport key encryption
* document the CardKeyProvider
* pySim.esim.saip: Meaningful constructors for [I]SD + SSD
* esim.saip: Implement ProfileElement.header_name for more PE types
2024-06-05 11:44:47 +00:00
Gerrit Code Review
e705baed70
Update notes for submitted changes
...
* pySim.esim.saip.validation: Ensure unique PE identification value
* esim.saip: Implement SecurityDomainSD.{add,has,remove}_key() methods
* esim.saip: Introduce ProfileElement derived classes
2024-06-04 20:51:58 +00:00
Gerrit Code Review
e4079f44e5
Update notes for submitted changes
...
* esim.bsp: Fix a bug in demac_only_one()
* utils: Introduce BER-TLV parsers that return raw tag or even raw TLV
2024-06-03 16:07:57 +00:00
Gerrit Code Review
b0fa6973e3
Update notes for submitted changes
...
* [cosmetic] fix typos in comments
2024-06-02 18:30:26 +00:00
Gerrit Code Review
3ea40a7e9e
Update notes for submitted changes
...
* add globalplatform.uicc
* osmo-smdpp: Make error message more descriptive
* osmo-smdpp: Don't re-encode euiccSigned1/euiccSigned2
2024-05-31 21:32:59 +00:00
Gerrit Code Review
2627f3ac87
Update notes for submitted changes
...
* docs/shell: Mention GlobalPlatform and eUICC commands in overview
2024-05-31 08:44:01 +00:00
Gerrit Code Review
2a630088e0
Update notes for submitted changes
...
* pySim.app: Attempt to retrieve the EID of a SGP.22 / SGP.32 eUICC
* pySim-shell: Migrate PySimApp.iccid to RuntimeState.identity['ICCID']
* runtime: Introduce an 'identity' dict for things like ATR, ICCID, EID
2024-05-30 18:06:04 +00:00
Gerrit Code Review
3f8fcf1dad
Update notes for submitted changes
...
* pysim/euicc: Remove duplicated code
* pySim/commands: STATUS: Use indeterminate length Le/P3 == '00'
* pySim/global_platform: Fix install_for_personalization command
2024-05-26 17:24:00 +00:00
Gerrit Code Review
74957f8ea8
Update notes for submitted changes
...
* contrib/sim-rest-client: don't crash without args
2024-05-24 20:23:35 +00:00
Gerrit Code Review
6550dbf2b0
Update notes for submitted changes
...
* pcsc: don't assume opts.pcsc_shared is present
2024-05-24 20:23:02 +00:00
Gerrit Code Review
dec08cdd62
Update notes for submitted changes
...
* pySim/cat: Fix contruct for Address class/IE
2024-05-23 15:01:01 +00:00
Gerrit Code Review
da19beb8e2
Update notes for submitted changes
...
* sysmocom_sjs2: Make sure 'Const' is imported
* euicc: clarify which eUICCs are supported
* pySim-trace.py: Resolve possible variable use before assignment
* pySim-prog.py: Resolve possible variable use before assignment
* osmo-smdpp.py: Resolve possible variable use before assignment
* euicc.py: Resolve possible variable use before assignment
* commands.py: Resolve possible variable use before assignment
* commands.py: Resolve possible variable use before assignment
2024-05-23 14:48:37 +00:00
Gerrit Code Review
d51f629b54
Update notes for submitted changes
...
* pySim-trace: Support decoding of eUICC traces
2024-05-10 19:18:14 +00:00
Gerrit Code Review
549e028bb2
Update notes for submitted changes
...
* pySim.global_platform: Fix key encryption with DEK
2024-05-10 18:28:33 +00:00
Gerrit Code Review
a7d1b23ef6
Update notes for submitted changes
...
* euicc: Fix shell command for SGP.31 get_certs
2024-05-10 18:19:29 +00:00
Gerrit Code Review
76d240eaf2
Update notes for submitted changes
...
* filesystem: Enforce lower-case hex AID
2024-05-10 18:17:08 +00:00
Gerrit Code Review
c2a6d96592
Update notes for submitted changes
...
* esim.esp2: Allow HTTP methods other than POST
* esim.es2p: Permit ApiParamInteger to be an actual integer
2024-04-05 11:42:31 +00:00
Gerrit Code Review
41037b49d2
Update notes for submitted changes
...
* Add funding link to github mirror
2024-03-23 10:27:01 +00:00
Gerrit Code Review
c6b78e1132
Update notes for submitted changes
...
* README.md: Add link to issue tracker
* README.md: Link to discourse forum
2024-03-23 09:22:44 +00:00
Gerrit Code Review
74dbb6afc9
Update notes for submitted changes
...
* README.md: Point to simtrace mailing list
2024-03-23 09:17:28 +00:00
Gerrit Code Review
1fc425af8b
Update notes for submitted changes
...
* contrib/jenkins.sh: add 'distcheck' job to check package integrity
2024-03-22 19:21:04 +00:00
Gerrit Code Review
3e13228796
Update notes for submitted changes
...
* add missing modules to setup.py
2024-03-22 07:29:24 +00:00
Gerrit Code Review
3bd24a9a90
Update notes for submitted changes
...
* pcsc: open reader/card in EXCLUSIVE mode by default
* pySim-prog: convert from optparse to argparse
2024-03-15 20:33:09 +00:00
Gerrit Code Review
1d3c712aa4
Update notes for submitted changes
...
* osmo-smdpp: fix generation of transactionId
2024-03-15 15:10:47 +00:00
Gerrit Code Review
606df035f2
Update notes for submitted changes
...
* sysmocom_sja2: Add test vectors for EF_USIM_AUTH_KEY
2024-03-14 11:40:27 +00:00
Gerrit Code Review
6628230a58
Update notes for submitted changes
...
* docs/shell: Give users some hints on what to do if encoding/decoding fails
2024-03-13 21:05:03 +00:00
Gerrit Code Review
41f3a49f04
Update notes for submitted changes
...
* tests: assertEquals() is deprecated, use assertEqual()
2024-03-02 09:10:19 +00:00
Gerrit Code Review
1399c01856
Update notes for submitted changes
...
* saip.personalization: Fix encoding of ICCID in ProfileHeader
* saip.personalization: automatically compute class 'name' attribute
* saip.personalization: differentiate input_value from value
* saip.personalization: Add support for SCP80/81/02/03 keys
* saip.personalization: include encode/decode of value; add validation method
2024-02-22 10:23:36 +00:00
Gerrit Code Review
1c3490f091
Update notes for submitted changes
...
* osmo-smdpp: Add TS.48 profiles modified for unique ICCIDs
2024-02-21 08:28:35 +00:00
Gerrit Code Review
88afea9518
Update notes for submitted changes
...
* osmo-smdpp: Get rid of hard-coded ICCID
2024-02-21 08:28:25 +00:00
Gerrit Code Review
fc24c0d1e3
Update notes for submitted changes
...
* saip: improve docstrings
* pylint: esim/saip/validation.py
* pylint: esim/saip/__init__.py
* saip: profile processing; merging with templates
* asn1/saip: Fix typo in original ASN.1: Compontents -> Components
* utils: Add function to verify Luhn check digits and to sanitize ICCIDs
2024-02-19 11:02:17 +00:00
Gerrit Code Review
d204818c4e
Update notes for submitted changes
...
* Dynamically determine maximum CMD data length depending on SCP
* Add terminal_capability command to send TERMINAL CAPABILITY
* ts_31_102: Add support for "USIM supporting non-IMSI SUPI Type"
2024-02-18 18:30:57 +00:00
Gerrit Code Review
f316136960
Update notes for submitted changes
...
* Introduce code for ES2+ API client functionality
2024-02-12 17:05:14 +00:00
Gerrit Code Review
bac940bbf8
Update notes for submitted changes
...
* global_platform: Add --suppress-key-check option to put_key command
2024-02-07 19:35:10 +00:00
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
Gerrit Code Review
ce801bfa85
Update notes for submitted changes
...
* pySim-shell: don't get trapped in applications without file system
2023-12-07 13:21:07 +00:00
Gerrit Code Review
cbdec5d06d
Update notes for submitted changes
...
* euicc: Fix encoding of {enable,disable,delete}_profile
* tlv: Fix encoding of zero-valued TLVs
2023-12-07 13:19:52 +00:00
Gerrit Code Review
c662305ed9
Update notes for submitted changes
...
* runtime: cosmetic: prnounce file reference data
* runtime: explain why we may access the card object directly
* runtime: do not use the _scc object of the card object to select MF
2023-12-07 13:19:08 +00:00
Gerrit Code Review
62b9a5fa68
Update notes for submitted changes
...
* flatten_dict_lists(): Don't flatten lists with duplicate keys
2023-12-06 14:09:11 +00:00
Gerrit Code Review
ab8cdff129
Update notes for submitted changes
...
* ara_m: Fix encoding of DeviceInterfaceVersionDO
2023-12-06 01:07:35 +00:00
Gerrit Code Review
999c380d76
Update notes for submitted changes
...
* filesystem: add flag to tell whether an ADF supports an FS or not
2023-12-05 17:37:37 +00:00
Gerrit Code Review
d37156caed
Update notes for submitted changes
...
* perform multiple GET RESPONSE cycles if more data is available
2023-12-05 17:07:58 +00:00
Gerrit Code Review
13354d49f4
Update notes for submitted changes
...
* pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
2023-11-29 15:30:10 +00:00
Gerrit Code Review
3093da4835
Update notes for submitted changes
...
* pySim-shell: refuse to execute a startup script on initialization errors
* app: do not catch exceptions in init_card
2023-11-28 15:42:06 +00:00
Gerrit Code Review
b5275d55d5
Update notes for submitted changes
...
* ts_31_102: correct name of EF_ePDGId
2023-11-15 21:28:55 +00:00
Gerrit Code Review
7b8c574fdc
Update notes for submitted changes
...
* runtime: fix tracking of selected_adf
2023-11-09 14:43:08 +00:00
Gerrit Code Review
50d257d60d
Update notes for submitted changes
...
* pySim-shell: Move init_card() function to new pySim.app module
2023-11-09 12:36:47 +00:00
Gerrit Code Review
281a945c6e
Update notes for submitted changes
...
* transport: Log it explicitly if user doesn't specify a reader
* Use construct 'Flag' instead of 'Bit' for type descriptions
2023-11-04 15:55:59 +00:00
Gerrit Code Review
f104b72555
Update notes for submitted changes
...
* sysmocom_sja2: Add some de/encode test vectors
* pySim-shell: Reject any non-decimal PIN values
* pySim-shell: permit string with spaces for 'echo' command
* pySim-shell: Validate that argument to 'apdu' command is proper hexstr
* pySim-shell: Improved argument validation for verify_adm argument
2023-11-03 07:29:33 +00:00
Gerrit Code Review
76102b1a7d
Update notes for submitted changes
...
* pySim-shell: Use argparser for verify_adm to support --help
* pySim-shell: Add copyright statement and link to online manual to banner
* docs: shell: Various documentation updates/extensions
* docs: shell: update output in examples
* docs: Fix docstring syntax to avoid warnings
* docs: shell: Re-order the command sections/classes
2023-11-02 23:43:05 +00:00