laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/43366?usp=email )
Change subject: [cosmetic] ts_102_221: update ISO7816 spec references ......................................................................
[cosmetic] ts_102_221: update ISO7816 spec references
Change-Id: If4e3842c119d54dfc46e8c9df950b56824ace001 --- M pySim/ts_102_221.py 1 file changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/66/43366/1
diff --git a/pySim/ts_102_221.py b/pySim/ts_102_221.py index 603bc9c..6a64f2b 100644 --- a/pySim/ts_102_221.py +++ b/pySim/ts_102_221.py @@ -336,6 +336,8 @@
# ETSI TS 102 221 Section 9.2.7 + ISO7816-4 9.3.3/9.3.4 class _AM_DO_DF(DataObject): + """ISO7816-4:2005 5.4.3.1 Table 16""" + def __init__(self): super().__init__('access_mode', 'Access Mode', tag=0x80)
@@ -382,7 +384,7 @@
class _AM_DO_EF(DataObject): - """ISO7816-4 9.3.2 Table 18 + 9.3.3.1 Table 31""" + """ISO7816-4:2005 5.4.3.1 Table 17"""
def __init__(self): super().__init__('access_mode', 'Access Mode', tag=0x80) @@ -430,7 +432,7 @@
class _AM_DO_CHDR(DataObject): - """Command Header Access Mode DO according to ISO 7816-4 Table 32.""" + """Command Header Access Mode DO according to ISO 7816-4:2005 5.4.3.2 Table 22."""
def __init__(self, tag): super().__init__('command_header', 'Command Header Description', tag=tag) @@ -544,8 +546,9 @@ pin = pin_names.inverse[self.decoded] return b'\x83\x01' + pin.to_bytes(1, 'big') + b'\x95\x01\x08'
-# ISO7816-4 9.3.3 Table 33 class SecCondByte_DO(DataObject): + """ISO7816-4:2005 5.4.3.1 Table 20""" + def __init__(self, tag=0x9d): super().__init__('security_condition_byte', tag=tag)