diff options
author | Harald Welte <laforge@osmocom.org> | 2024-01-09 23:34:24 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-01-09 23:35:10 +0100 |
commit | d1cc8d0c1d02bb87c9073d621e6ffc63fb08dfd8 (patch) | |
tree | c8f7e69a904e9540debc3fbec851d63f4d6cd173 | |
parent | f2bcb44ccc5fb342aef4ae22fdd809ed43458efd (diff) |
euicc: Fix decoding of SubjectKeyIdentifier.
There's actually no additional TLV structure inside the Tag 0x04.
Change-Id: Ic922355308747a888083c5b26765d272b6b20bd0
-rw-r--r-- | pySim/euicc.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pySim/euicc.py b/pySim/euicc.py index e405f30..81fbd1e 100644 --- a/pySim/euicc.py +++ b/pySim/euicc.py @@ -94,13 +94,11 @@ class GetEuiccChallenge(BER_TLV_IE, tag=0xbf2e, nested=[EuiccChallenge]): # SGP.22 Section 5.7.8: GetEUICCInfo class SVN(BER_TLV_IE, tag=0x82): _construct = VersionType -class SubjectKeyIdentifier(BER_TLV_IE, tag=0x81): +class SubjectKeyIdentifier(BER_TLV_IE, tag=0x04): _construct = HexAdapter(GreedyBytes) -class SubjectKeyIdentifierSeq(BER_TLV_IE, tag=0x04, nested=[SubjectKeyIdentifier]): +class EuiccCiPkiListForVerification(BER_TLV_IE, tag=0xa9, nested=[SubjectKeyIdentifier]): pass -class EuiccCiPkiListForVerification(BER_TLV_IE, tag=0xa9, nested=[SubjectKeyIdentifierSeq]): - pass -class EuiccCiPkiListForSigning(BER_TLV_IE, tag=0xaa, nested=[SubjectKeyIdentifierSeq]): +class EuiccCiPkiListForSigning(BER_TLV_IE, tag=0xaa, nested=[SubjectKeyIdentifier]): pass class EuiccInfo1(BER_TLV_IE, tag=0xbf20, nested=[SVN, EuiccCiPkiListForVerification, EuiccCiPkiListForSigning]): pass |