Attention is currently required from: dexter, hampushellsberg, laforge, lynxis 
lazus.

Hello Jenkins Builder, dexter, laforge, lynxis lazus,

I'd like you to reexamine a change. Please visit

    https://gerrit.osmocom.org/c/pysim/+/44011?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review+1 by dexter, Code-Review+1 by laforge, Verified+1 by Jenkins Builder


Change subject: esim.saip: keep keyAccess and keyCounterValue of security 
domain keys
......................................................................

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 https://gerrit.osmocom.org/c/pysim/+/44011?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I7df8ef6f2c81cd8544a04dbf7ff5d096685103e3
Gerrit-Change-Number: 44011
Gerrit-PatchSet: 3
Gerrit-Owner: hampushellsberg <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Attention: hampushellsberg <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Attention: lynxis lazus <[email protected]>
Gerrit-Attention: dexter <[email protected]>

Reply via email to