Harald Welte
b060833e9a
ts_102_221: Handle nested security condition data objects
ISO 7816-4 Section 5.4.3.2 "Expanded Format" permits for nesting
of security conditions using boolean operators OR, AND, NOT.
Let's implement decoding and encoding of these.
An example decoded looks like:
pySIM-shell (MF/EF.ARR)> read_record_decoded 1
[
[
{
"access_mode": [
"activate_file_or_record",
"deactivate_file_or_record",
"update_erase"
]
},
{
"or": [
{
"control_reference_template": "ADM1"
},
{
"control_reference_template": "ADM2"
}
]
}
],
[
{
"access_mode": [
"read_search_compare"
]
},
{
"always": null
}
]
]
Prior to this patch, pySim would raise "ValueError: Unknown Tag 0xa0 in bytearray"
Change-Id: Icb09cf3a90303a86fc77406b8b0806b5c926f1be
Closes: OS#5411
2022-02-10 15:24:32 +01:00
..
2022-01-25 01:14:44 +01:00
2017-03-21 13:07:57 +01:00
2021-11-11 09:07:57 +00:00
2021-10-11 10:56:44 +02:00
2021-05-02 20:22:15 +00:00
2021-11-23 18:35:34 +01:00
2021-10-14 16:16:23 +02:00
2021-11-19 13:21:32 +01:00
2021-06-05 10:47:17 +02:00
2021-04-02 21:08:35 +02:00
2022-01-22 12:59:02 +00:00
2021-11-10 14:10:11 +01:00
2021-04-07 16:45:12 +00:00
2021-11-19 13:21:32 +01:00
2021-11-19 13:21:32 +01:00
2021-10-21 14:12:13 +02:00
2022-02-09 20:23:27 +00:00
2021-11-19 13:21:32 +01:00
2022-02-10 14:53:56 +01:00
2022-02-10 15:24:32 +01:00
2022-02-09 16:38:08 +01:00