Henrique Jotha da Costa wrote: > Hi! > > I'm having problems using MSCWriteFramework with > a Axalto CyberFlex 64k smartcard. > > Function is returning 0x6D00 error code. I have checked > some manuals and it says that it means "invalid instruction". > is that right? what could possible be going on?
You command structure seems to be wrong. Take a look at (Setup Function) this http://web.inf.tu-dresden.de/~ko189283/MuscleCard/MCardAppletChanges.html You must ignore the last two rows (if you do not use this applet version), so the error are your last three bytes (Create Object ACL (2 Byte) Create Key ACL (2 Byte) Create PIN ACL (2 Byte)) (00 02 01) > > The following APDUs are being sent: > ->: b0 2a 00 00 38 08 4d 75 73 63 6c 65 30 30 04 01 08 4d 75 73 73 75 6d > 30 30 08 4d 75 73 73 75 6d 30 30 03 05 08 38 37 36 35 34 33 32 31 08 32 > 32 32 32 32 32 32 32 00 00 29 04 00 02 01 > <-: 6d 00 > > is it possible to reinitialize the card, > without writing the card applet again too ? No. At least for the applet which you may use. Because the buffer for the memory is allocated in the setup routine, this memory cannot be reclaimed in the next call to setup. So it is not possible. I just fixed this behavior for the version mentioned in the documentation above, so it is possible if the command fails to call it again. Or to call the setup function again, if some parameters are changed (except the memory size which cannot be changed if allocated. This would only be possible with a card with garbage collection and enough space for the other memory allocation, before the old memory allocation can be "garbage collected".) The setup function could be called so by someone privileged (admin) again and again to erase the card contents. But maybe there is security risk with this. Karsten > > any help will be gladly appreciated. > > best regards, > > Henrique Jotha > > _______________________________________________ > Muscle mailing list > [email protected] > http://lists.drizzle.com/mailman/listinfo/muscle _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
