Commit Graph

545 Commits

Author SHA1 Message Date
Gerrit Code Review
6881f17e85 Update notes for submitted changes
* pySim-shell: add "fsdump" command
2024-07-29 11:00:31 +00:00
Gerrit Code Review
cfedb881bc Update notes for submitted changes
* pySim.tlv: Separate {to,from}_val_dict() from {to,from}_dict()
* pySim.commands: Don't convert SwMatchError to ValueError
* pySim.runtime: Be more verbose if incompatible method is called
* pySim.tlv: Add convenience methods to IE class
* pySim.esim.saip: Decode each 'File' element in ProfileElement
* pySim.esim.saip: Add OID comparison functions
2024-07-29 10:48:12 +00:00
Gerrit Code Review
a954b6df3c Update notes for submitted changes
* ara_m: fix misspelled object name
* ara_m: fix sourcecode formatting
* pySim-shell: fix comment formatting
2024-07-27 08:22:57 +00:00
Gerrit Code Review
71e48051d2 Update notes for submitted changes
* pySim-shell: clean up method calls in do_switch_channel
* pySim-shell: fix reset command
* pySim-shell: turn "ADF-escape-code" into an lchan method.
* pySim-shell: move export code into filesystem class model
2024-07-27 08:22:04 +00:00
Gerrit Code Review
885eba7d1d Update notes for submitted changes
* pySim.global_platform.ota: Support KVN 0x70 for SCP02
* saip-tool: Fix TAR display for implicit TAR
* pySim.apdu.global_platform: Decode the INSTALL command parameters
* pySim.ota: Add construct definition for SIM File + TK Param definition
2024-07-26 09:44:32 +00:00
Gerrit Code Review
e4d537ec6b Update notes for submitted changes
* pySim-shell: fix comment formatting
* ts_31_103_shared: fix file structure of EF.WebRTCURI
* runtime: rename get_file_for_selectable to get_file_for_filename
* runtime: add missing docstring
2024-07-26 06:24:07 +00:00
Gerrit Code Review
c1b575e5d8 Update notes for submitted changes
* pySim.apdu: Get rid of HexAdapter
* pySim-trace: display decoded result as JSON, not as python dict
* pySim.apdu.ts_102_222: APDU decoding for administrative commands
2024-07-26 06:21:16 +00:00
Gerrit Code Review
0cc6093140 Update notes for submitted changes
* pySim.apdu: Fix APDU CLA matching
* pySim.apdu: Refactor cmd_to_dict() method
2024-07-23 14:47:46 +00:00
Gerrit Code Review
646304bacf Update notes for submitted changes
* pySim.ts_31_102: Fix name of EF.VBSCA
* ts_31_102: Make use of ts_31_103_shared and add Rel 18 files
* [cosmetic] ts_31_102: Note in comment which release introdcued recent files
* move parts of pySim.ts_31_103 to pySim.ts_31_103_shared
* pySim.ts_31_103: update to spec v18.1.0 Release 18
* osmo-smdpp + es9p_client: HTTP status 204 is used for handleNotification
* pySim.globalplatform: Add 'http' submodule for GP Amd B RAM over HTTPS
* pySim.esim.es8p: Add support for encoding icon in ProfileMetadata
* osmo-smdpp: Request enable/disable/delete notifications in metadata
* osmo-smdpp: Implement 'other' notification signature validation
* contrib/es9p_client: Add support for reporting notifications to SM-DP+
2024-07-19 12:10:10 +00:00
Gerrit Code Review
20a8587ee2 Update notes for submitted changes
* es9p_client: Move code into a class; do common steps in constructor
2024-07-17 15:58:28 +00:00
Gerrit Code Review
1b3fdad714 Update notes for submitted changes
* osmo-smdpp: Make sure to return empty HTTP response in handleNotification
2024-07-17 14:07:16 +00:00
Gerrit Code Review
cae35b507d Update notes for submitted changes
* pySim.esim.http_json_api: 'header' is not always present in response
2024-07-16 16:58:55 +00:00
Gerrit Code Review
f0d70108e3 Update notes for submitted changes
* saip-tool: Fix output of TAR values in "print" subcommand
2024-07-16 15:06:57 +00:00
Gerrit Code Review
9c1102072e Update notes for submitted changes
* pySim.cat: More spec references + explanations in comments
2024-07-15 15:08:41 +00:00
Gerrit Code Review
748c7dd1bb Update notes for submitted changes
* transport: Implement treatment of 62xx and 63xx warning/error responses
2024-07-15 15:08:24 +00:00
Gerrit Code Review
2255fa1f8e Update notes for submitted changes
* pySim.commands: Check return value of TERMINAL PROFILE command
* pySim.ota: Raise exception if encoded length would exceed 140 bytes
* pySim.ota: Handle cases where 'secured_data' is empty
* pySim.transport: Fix proactive_handler from_dict() calls
2024-07-13 21:25:03 +00:00
Gerrit Code Review
2fc82713dd Update notes for submitted changes
* pySim.tlv: Add COMPACT_TLV_IE TLV variant
2024-07-12 15:20:20 +00:00
Gerrit Code Review
06b194080a Update notes for submitted changes
* saip-tool: Also dump RFM information in "info" command
* saip-tool: Dump information about security domains from "info" command
* pySim.esim.saip: Add methods to rebuild "mandatory" lists in ProfileHeader
* pySim.esim.saip: ProfileElement{Header,End} classes
* pySim.esim.saip: Move initialization of PE header to base class
* pySim.saip: Add ProfileElementRFM class
* pySim.esim.saip: Add ProfileElementOpt{USIM,ISIM} classes
* pySim.saip.oid: Properly differentiate optional from non-optional templates
* tests: Add ProfileElementSD and ProfileElementSSD to test_constructor_encode
* pySim.esim.saip: Add ProfileElementAKA constructor + methods
* pySim.esim: Allow calling compile_asn1_subdir() with non-DER coddec
* pySim.esim.saip: Meaningful defaults in PE Constructor + test
2024-07-10 06:51:23 +00:00
Gerrit Code Review
2d39bd8613 Update notes for submitted changes
* pySim.tlv: Fix ComprTlvMeta() not passing kwargs to parent __new__
2024-07-10 06:49:29 +00:00
Gerrit Code Review
5b0883666f Update notes for submitted changes
* saip-tool: Add 'extract-apps' to dump all applications from eSIM profile
* saip-tool: Add new 'info' action to print general information
2024-06-13 14:50:23 +00:00
Gerrit Code Review
19504659b2 Update notes for submitted changes
* esim.saip: Remove debug print()
* es9p_client: Use a plausible TAC (copy from lpac)
2024-06-10 12:46:40 +00:00
Gerrit Code Review
34720202da Update notes for submitted changes
* contrib/jenkins.sh: Execute pylint also on all contrib python scripts
* unber.py: work-around pylint reporting (possibly-used-before-assignment)
* osmo-smdpp: use NIST-P256 by default
* tests/ota_test.py: Allow stand-alone execution
* pySim.ota.OtaDialectSms: Implement command decoding
2024-06-10 11:39:28 +00:00
Gerrit Code Review
5653478c21 Update notes for submitted changes
* pySim.ota.OtaDialectSms: Move SMS header construct up to class level
* pySim/ota: Don't modify input argument in OtaDialectSms.encode_cmd
* pySim.cat: Add more alredy-defined IEs to ProactiveCmd classes
* add contrib/saip-tool.py
* jenkins.sh: Include es9p_client in pylint
* pySim.tlv.COMPR_TLV_IE: Patch comprehension bit if derived class misses it
* pySim.cat: Make sure to always set comprehension bit in COMPR_TLV_IE
* pySim.tlv: Correctly parse COMPREHENSION-TLV without comprehension bit
* esim.saip: Add ProfileElementSequence.remove_naas_of_type
2024-06-10 11:39:03 +00:00
Gerrit Code Review
9798831cbc Update notes for submitted changes
* esim.saip: Introduce ProfileElement.identification property
* esim.es9p: Suppress sending requestHeader on ES9+
* add contrib/es9p_client: Perform ES9+ client functions like LPA+eUICC
* http_json_api / es9p: Add User-Agent header
* add pySim.esim.es9p with definitions of the ES9+ HTTP Interface
* esim.es2p: Split generic part of HTTP/REST API from ES2+
* pySim/cat: Fix "Decode the "Type of Comand" from numeric value to a string"
2024-06-09 14:21:18 +00:00
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