From 2b6deddcdc4eaafa70538e6fe17b49786d3cd21c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 7 Dec 2023 14:21:19 +0100 Subject: [PATCH] euicc: the ICCID TLV object uses bcd-swapped-nibble encoding Change-Id: I050f9e0fb128f3e1d472e2330b136a753794a5a1 --- pySim/euicc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/euicc.py b/pySim/euicc.py index c74ca667..58d19f18 100644 --- a/pySim/euicc.py +++ b/pySim/euicc.py @@ -149,7 +149,7 @@ class SeqNumber(BER_TLV_IE, tag=0x80): class NotificationAddress(BER_TLV_IE, tag=0x82): _construct = Utf8Adapter(GreedyBytes) class Iccid(BER_TLV_IE, tag=0x5a): - _construct = HexAdapter(GreedyBytes) + _construct = BcdAdapter(GreedyBytes) class NotificationMetadata(BER_TLV_IE, tag=0xbf2f, nested=[SeqNumber, ProfileMgmtOperation, NotificationAddress, Iccid]): pass