Change in pysim[master]: pySim-read.py: Add ability to read by AID with correct CLA, P1 and P2...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

guilly@gmail.com gerrit-no-reply at lists.osmocom.org
Sun Apr 26 09:08:02 UTC 2020


guilly at gmail.com has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/17880 )

Change subject: pySim-read.py: Add ability to read by AID with correct CLA, P1 and P2 bytes
......................................................................


Patch Set 1:

> Patch Set 1:
> 
> > Patch Set 1:
> > 
> > did you actually encounter any specific bug/problem before this patch?
> > 
> > In general, I'm not aware of any USIM/ISIM specific requirements for the CLAss byte.
> > 
> > IMHO, the underlying question is whether the card is a classic SIM (0xA0) or an UICC (0x00). But an UICC can have various other Applications, not  just USIM/ISIM.
> > 
> > Also, why reset the card after changing the class byte?
> > 
> > I think this needs more explanation in commit log and/or comments.
> > 
> > The link you quote is some APDU trace and not a specification reference.
> 
> Yes, without this commit, it was not possible to select an AID on Sysmocom ISIM and USIM (also any operation related to USIM/ISIM AID) as pySim was throwing various forms 6Exx or 6Axx errors. Yeah are right about SIM being classic SIM (0xA0) or an UICC (0x00), I think the commit message here may be a bit misleading.
> 
> Regarding resetting of card, without doing that any changes done to CLA or P1 or P2 was not taken into effect resulting in failure of selecting AIDs or any operation related to USIM/ISIM AID.
> 
> Also, this commit was inspired by the implementation in sysmo-usim-tool, which uses the same CLA, P1 and P2 to read a USIM.
> 
> P.S: With this commit i was even able to read a commercial USIM from Vodafone DE (previously it was not possible).

I am seeing a similar problem/need with the CLA byte, shouldn't it be better addressed with a new SimCard class?


-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/17880
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ifea328eff3a381d7b82118e22d2bc0ec5f8a87e4
Gerrit-Change-Number: 17880
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-CC: guilly at gmail.com <guilly at gmail.com>
Gerrit-CC: laforge <laforge at osmocom.org>
Gerrit-Comment-Date: Sun, 26 Apr 2020 09:08:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200426/c419272f/attachment.htm>


More information about the gerrit-log mailing list