I think your problem is in the checksum.
Why don't you do all your process again, saving it in a file, and verifying your
checksum? (the fourth byte in the header.)
The order in wich the parts of the key should be written is their natural order. And,
to calculate the checsum, you have do an XOR operation over the 11 bytes (8 from the
part of the key, and the first tree of the header), and then a NOT to that result.
Obviously, the checksum is the last byte of your header.
I hope it works. If not, please let me know.
Best regards.
>Hi,
>
>Can someone answer this question please...
>
>I was trying to update the System Key of Gemplus's MPCOS-EMV cards (in =
>file EFKey 3F01h) using the Update Binary command. Though the update =
>command succeeded, I was not able to authenticate to the card using the =
>new system key that I used in the update command (obviuously the card =
>has written something else into the file). The card returned the error: =
>94 08h i.e Key file selection error.=20
>=20
>Since we have to write the 16 bytes 3DES key as 2 DES keys separately, =
>which part of the 16 bytes (Key type part 1 or Key type part 2) should =
>be written first and which second (I tried both ways but the result was =
>the same)? Also in which order (LSB first or
>MSB first)? Kindly send me full information about this operation.
>
>Best Regards,
>Sriram V
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META content=3D"text/html; charset=3Diso-8859-1" =
>http-equiv=3DContent-Type>
><META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>Can someone answer this =
>question=20
>please...</FONT></DIV>
><DIV> </DIV>
><DIV><FONT face=3DArial size=3D2>I was trying to update the System Key =
>of Gemplus's=20
>MPCOS-EMV cards (in file EFKey 3F01h) using the Update Binary command. =
>Though=20
>the update command succeeded, I was not able to authenticate to the card =
>using=20
>the new system key that I used in the update command =
>(obviuously the=20
>card has written something else into the file). The card returned the =
>error: 94=20
>08h i.e Key file selection error. </FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
><DIV><FONT face=3DArial size=3D2>Since we have to write the 16 bytes =
>3DES key as 2=20
>DES keys separately, which part of the 16 bytes (Key type part 1 or Key =
>type=20
>part 2) should be written first and which second (I tried both ways but =
>the=20
>result was the same)? Also in which order (LSB first or<BR>MSB =
>first)?=20
>Kindly send me full information about this operation.</FONT></DIV>
><DIV> </DIV>
><DIV><FONT face=3DArial size=3D2>Best Regards,<BR>Sriram=20
>V</FONT></DIV></BODY></HTML>
>
Registrate y obten un correo gratuito, seguro y de por vida en:
www.OficinadeCorreo.com.
No olvides visitar el mejor chat de Latinoamérica, ven y conectate con el mundo en
www.barriolatino.com
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************