Hi everybody,
I have a terrible problem with a cryptoflex 8K smartcard, maybe there are no
solutions.
I ask your help, please.

ATR: 3B951540FF6801020204

Commands that I sent to the card:

1) SELECT Master File  ( APDU: 0xC0A4000002*3F00* )
2) GET RESPONSE to get more info about Master File ( APDU: 0xC0C00000*14* )
    Answer: 0x00001BFC3F0038FF4F444401*05*0000*0200*0000009000
    This means that:
     - (3-4) 1BFC: 7164 bytes free in DF
     - (8-11) FF4F4444: ACs - AUT for DirNext, DeleteFile and CreateFile
     - (12) 01: File status = activated
*     - (13) 05: No CHV data !!!*
     - (14) 00: CHV1 absent or invalidated
     - (15) 00: 0 DFs under the MF
     - *(16) 02: 2 EFs under the MF*
*     - (17) 00: CHV files absent !!!!*
    If the DF has no relevant CHV file, then the the Get Response length is
17 bytes.
    If CHV1 exists, then the response length is 20 bytes. If CHV2 exists,
then the response is
    the full 23 bytes.

I want to create and manupulate files on the card but I can't because
authentication is required.

3) SELECT CHV1 File ( APUD: 0xC0A40000020000)
    The CHV1 reserved file ID is 0000. Answer is 0x6A82 (File ID not found)
4) SELECT CHV2 File ( APUD: 0xC0A40000020100)
    The CHV1 reserved file ID is 0100. Answer is 0x6A82 (File ID not found)

I used this card some months ago and I remember that I got the control using
the PIN 2C15E526E93E8A19. Now seems that there aren't pin files in the card
so using VERIFY CHV command I get (rightly) an error. This is really strange
because I never touched the card !!!

5) VERIFY CHV (APDU: 0xC0200001082C15E526E93E8A19)
    Answer 0x6981 : No EF exists or no CHV or Key defined

*So how can get the control of the card ?
*
I know that there are two file under the MF.
One of those is the card serial number file with reserved ID of 0002.
The following commands demostrate this:

6) SELECT card serial number EF (APDU: 0xC0A4000002*0002*)
    Answer: 0x610F
7) GET RESPONSE (APDU: 0xC0C000000F)
    Info: 0x000000080002010004FFFF010100009000

The other file is an external key file with reserved ID of 0011.
The following commands demostrate this:

6) SELECT external key file (APDU: 0xC0A4000002*0011*)
    Answer: 0x610F
7) GET RESPONSE (APDU: 0xC0C000000F)
    Info:  0x0000*0026*001101*FFF4FF44*010100009000
     - (3-4) 0026: file body size of 38 bytes
     - (7) 01: transparent file
     - (8-11) FFF4FF44: Acs -
     - *(12) 01: the file is active*

I try to create a trasparent file di 10 byte with the ID 2222 under the MF
without ACs

8) CREATE FILE (APDU: 0xF0E000001000000010*2222*01000000000103000000)
    Answer 0x6982: Access condition not met !!!!

So I cannot recreate the CHV file with this command because I don't met
access condition.

A virgin Cryptoflex 8K card has an 8-byte transport key in the external key
file in the MF (*ID=0011*) that is set to offer 3 key attempts. The first
key block (key 0) is used for an 8-byte factory key, which Schlumberger does
not distribute. The transport key resides in the second key block (key 1).

I think that the only way to gain card control is to send the VERIFY KEY
command with the key number, key length, and transport key string. Then so I
will can recreate CHV files.
I can only hope that this file was not changed in the past.

*The problem is, what is the default Cryptoflex 8K transport key ?*

-- 
Angella Andrea
Microsoft Certified Technology Specialist
http://www.angellaa.it/
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to