Hello, the privileges bits are specified in the GP specs .
GP 2.1.1 "Card Spec v2.1.1 v0303.pdf" page 107 table 9-7 GP 2.2 "GP Card Spec 2.2.pdf" page 114 (PDF page 134) table 11-7 (the privilege is now named "Card Reset") GP 2.2.1 "GPC_Specification_2.2.1.pdf" page 121 (PDF page 141) (same remark) The Default Selected Privilege is set in bit b3, with binary value 0x04. So your default selected application is: App LC: 7 PR: 0x04 Best regards Sebastien Le 22/04/2013 10:38, Florent Deybach a écrit : > Hi Sébastien, > > First thanks for your precise answer. > > First of all, make sure you have the correct keys. The card may have > different SDs, configured with different keys. > If the card has no > default selected application (which is the case for most cards), you > don't need the SD AID. > > > I am pretty sure I have the correct keys. My SIM card provider told me to use > the default VISA keys (404142....). > By the way, how do I know which one is the default selected Application by the > GP output? > Can I tell by the right-part of the GP list command? > ISD LC: 7 PR: 0x9A > App LC: 7 PR: 0x04 > Exe LC: 1 PR: 0x00 > > > > What is your card? An NFC phone secure element? > a SIM card? A generic card? Is it accessed via contacts, or via a > contactless interface? > > > It is accessed via contacts (via a generic Gemalto Reader). > It is a Infineon SIM Card from G&D with an preloaded application: Sm@rtCafé > Expert 4.0 > > > I think that in your card, A0 00 00 01 51 00 00 is not a security domain, > since the class 0x80 is unknown after you select this application. > A locked card should not reply 6E00 but 6985. > > > Ok thanks for the precision. > > > Automatic SD selection is a very bad idea, the selection order is > arbitrary but this can lead to different behaviours on different cards. > > Manual SD selection is the way to go if you want to avoid strange > problems. > > > Indeed, when I specify manually the SD, it works (see my previous mail) > > > It seems that the correct SD for your card is the visa one > (ending with 03) > > > Yes, that's what I've noticed. > > Cheers, > Florent > > > _______________________________________________ > Muscle mailing list > [email protected] > http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
_______________________________________________ Muscle mailing list [email protected] http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
