Olivier LAHAYE wrote on 05/26/06 08:42 AM:
I've finaly found my problem. thanks to Karsten Ohme who suggested me to trace APDU using pcscd -f -a -d, I saw that the "format 1" command returned "6A 82". Then using google, I was able to find that the applet may not be proprerly installed. Indeed it wasn't! After step 3 below, I forgot to "Install" the loaded applet and tryed directly a format (and obviously without any success). [The applet was loaded, but not installed]

Y'know - I thought something was missing in your output from gpshell
before - it was the instance of MCardApplet - you should see
a00000000101, in addition to a000000001.


[snip]
Finaly,
As I understand, in order to use my CyberFlex 64K, I need to do
- load applet
- install applet!!!
- format card
I've used CFlexAccess32. What would have been the gpshell equivalent? (especialy the install step).

The attached script should do it, with enough space for a 31000-byte
object store (when you format the token). It's actually possible to
send an APDU with GPShell that will format the MuscleCard token too (so
you don't even need to run muscleTool), but I'll leave that step for
"advanced class" later ;)


As my card are 64K models (not 32K), is there a way to have more room to work with? (I would be not cool to use a 64K model just like a 32K model leaving 32K unused/unavailable ;-) )

I mean: how do I determine optimum parameter for the install phase and the setup phase?

Trial and error :)

What version of Cyberflex 64k do you have? The early versions are not
true 64k cards - they only have about 47k of usable space, and since
the MCardApplet itself takes up about 13k, and with other overhead here
and there, you end up with under 32k of space left for the object store
The new Cyberflex Access 64k V3c cards that Axalto recently released are
supposed to be true 64k - I have a few to play with, but haven't tried
them yet.

    ~Iain

establish_context
card_connect
# Enable trace so we have something to watch while we wait :)
enable_trace
# Select Card Manager
select -AID a0000000030000
# Open a secure channel using SDK keys
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 
404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
# Load and instantiate the MCardAppplet
install -file MCardApplet.bin -nvCodeLimit 13500 -nvDataLimit 32000 -instParam 
00 -priv 2
# List applets/instances to see if it worked
get_status -element e0
card_disconnect
release_context
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to