pysim/tests
Harald Welte 1f7a9bd5b4 TLV: Add DGI encoding of "GP Scripting Language Annex B"
The DGI encoding is specified in Annex B of the
"GlobalPlatform Systems Scripting Language Specification v1.1.0"

which is an "archived" specification that is no longer published
by GlobalPlatform, despite it being referenced from the GlobalPlatform
Card Specification v2.3, which is the basis of the GSMA eSIM
specifications.

For some reason it was the belief of the specification authors that
yet another format of TLV encoding is needed, in addition to the BER-TLV
and COMPREHENSION-TLV used by the very same specifications.

The encoding of the tag is not really specified anywhere, but I've only
seen 16-bit examples.  The encoding of the length is specified and
implemented here accordingly.

Change-Id: Ie29ab7eb39f3165f3d695fcc1f02051338095697
2024-01-14 17:42:01 +01:00
..
pySim-prog_test.sh transport: print reader device/number on init 2023-10-26 15:17:07 +00:00
pySim-trace_test.sh pySim-trace_test.sh: Force termcolor to suppress color generation 2023-12-23 10:38:21 +01:00
test_apdu.py Introduce APDU/TPDU trace decoder 2022-07-23 12:18:57 +02:00
test_construct.py Implement convoluted encoding of UCS-2 as per TS 102 221 Annex A 2023-12-29 18:51:21 +01:00
test_esim.py Initial proof-of-concept SM-DP+ for GSMA consumer eSIM RSP 2024-01-09 21:37:12 +00:00
test_esim_bsp.py Initial proof-of-concept SM-DP+ for GSMA consumer eSIM RSP 2024-01-09 21:37:12 +00:00
test_esim_saip.py pySim.saip.*: Support for parsing / operating on eSIM profiles 2024-01-09 21:37:12 +00:00
test_files.py test_files: Test decoder also with ff-padded input 2023-12-29 18:51:25 +01:00
test_ota.py tests: Add new, data-driven OTA tests 2023-06-18 10:50:50 +02:00
test_sms.py Add support for encoding/decoding SMS in TPDU and SMPP format 2023-06-18 10:46:23 +02:00
test_tlv.py Extend unit test coverage for construct, add [some] tests for TLV 2022-02-14 00:41:24 +01:00
test_tlvs.py global_platform: Add TLV test data for Key Information Data 2023-12-27 15:15:58 +00:00
test_utils.py TLV: Add DGI encoding of "GP Scripting Language Annex B" 2024-01-14 17:42:01 +01:00