Attention is currently required from: dexter, hampushellsberg, laforge, lynxis lazus.
hampushellsberg uploaded patch set #3 to this change.
The following approvals got outdated and were removed: Code-Review+1 by dexter, Code-Review+1 by laforge, Verified+1 by Jenkins Builder
esim.saip: keep keyAccess and keyCounterValue of security domain keys
SecurityDomainKey only stored the usage qualifier, KID, KVN and key
components, and ProfileElementSD._pre_encode() rebuilds keyList from
it, so a non-default keyAccess and any keyCounterValue were lost on
re-encode. Store both. keyAccess is only written if it is not '00'.
The counter is an integer, encoded with the length of the protocol the
KVN is reserved for (SAIP section 8.6.3: 2, 3 and 5 bytes for SCP02,
SCP03 and SCP80, on the KVN ranges listed in global_platform/uicc.py),
also when it was decoded with another length. A counter on any other
KVN raises ValueError.
The folder osmocom-pysim-saip-sd-key-access-counter of
hampushellsberg-dev/PySIM-upstream-patches on GitHub has the analysis
and a repro.
Change-Id: I7df8ef6f2c81cd8544a04dbf7ff5d096685103e3
---
M pySim/esim/saip/__init__.py
M tests/unittests/test_esim_saip.py
2 files changed, 70 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/11/44011/3
To view, visit change 44011. To unsubscribe, or for help writing mail filters, visit settings.