Where can I get a the reference manual of the card(MPCOS/GPK), please?.
Mohammed SADIQ wrote:
> There are 3 groups of Access Conditions in MPCOS/GPK.
>
> For Elementary files,
> AC1 is for Update
> AC2 is for Write(append for record files)
> AC3 is for Read
>
> Each access condition is of 2 bytes, which is coded as follows:
>
> BYTE 1
> Val(b7, b6) = 00 No secret code protection
> 01 Protected by secret code SC1(and secure messaging if KeyFile !=
>00000)
> 10 Protected by secret codes SC1 and SC2(and secure messaging if
>KeyFile != 00000)
> 11 Access never allowed.
> L(b5) = Level of the key file(0 = global/MF, 1 = local/DF)
> KeyFile(b4..b0) = SFI(short file identifier) of the key file(in case of secure
>messaging)
>
> BYTE 2
> L1(b7) = Level of EFsecretcode which contains SC1
> SC1(b6..b4) = first secret code number
> L2(b3) = Level of EFsecretcode which contains SC2
> SC2(b2..b0) = second secret code number
>
> For your case, that is 0x00, 0x00, 0x00, 0x00, 0x80(1000 0000), 0x81(1000 0001)
> Update and Write operations are not protected(FREE) and
> Read is protected by 2 secret codes(val = 10), no secure messagin(KeyFile = 00000).
>The 2 secret codes are SC1 = secret code number '0' at local/DF level, and SC2 =
>secret code number '1' at global/MF level.
>
> By the way, you can find the explanation in the reference manual of the
>card(MPCOS/GPK).
>
> ----------
> Time is a great teacher, but unfortunately it kills all its pupils.
> - Hector Louis Berlioz
>
> >-----Original Message-----
> >From: Mariano Ortu�o S�nchez [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, August 01, 2000 4:42 PM
> >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> >Subject: [OCF] GPK AccessConditions
> >
> >
> >
> >What is the format of the accessConditions array (describing the Access
> >Conditions in the GPK proprietary format), please?
> >
> >for example:
> >
> > byte[] ac_4008 = {
> > 0, 0, 0, 0, (byte)0x80, (byte)0x81 <-- What is meanig?
> > };
> > fus.createTransparentFile(ef_4008, 100, ac_4008);
> >
> >
> >
> >
> >---
> >> Visit the OpenCard web site at http://www.opencard.org/ for more
> >> information on OpenCard---binaries, source code, documents.
> >> This list is being archived at
> >http://www.opencard.org/archive/opencard/
> >
> >! To unsubscribe
> >from the [EMAIL PROTECTED] mailing list send an email
> >! to
> >! [EMAIL PROTECTED]
> >! containing the word
> >! unsubscribe
> >! in the body.
> >
> >
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.