OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] can not load Muscle Applet to Cyberflex 64Kv2 card withGPShell

From: zlf.stevens (zlf.stevensgmail.com)
Date: Mon Feb 04 2008 - 01:05:16 CST


Thank you for your reply!

Now it is OK!

My script is :
    enable_trace
    establish_context
    card_connect
    select -AID a000000003000000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key
404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
    delete -AID A0000003230101
    delete -AID A00000032301
    #install -file CardEdgeCflex.ijc -sdAID A000000003000000 -nvDataLimit
1000 -instParam 00 -priv 02
    install_for_load -pkgAID A00000032301 -nvCodeLimit 16000 -sdAID
A000000003000000
    load -file CardEdgeCflex.ijc
    install_for_install -instParam 00 -priv 02 -AID A0000003230101 -pkgAID
A00000032301 -instAID A0000003230101 -nvDataLimit 16000
    card_disconnect
    release_context

another question:
how to determinate nvDataLimit?
if -nvDataLimit is set 500 in install_for_install command, it is fail.

----- Original Message -----
From: "Karsten Ohme" <widerstandt-online.de>
To: "MUSCLE" <musclelists.musclecard.com>
Sent: Monday, February 04, 2008 1:19 AM
Subject: Re: [Muscle] can not load Muscle Applet to Cyberflex 64Kv2 card
withGPShell

> zlf.stevens schrieb:
>> hi,all
>>
>> I have a cyberflex 64 v2 smart card. But when i load the MuscleApplet
>> into the
>> card with GPShell 1.4.1(globalplatform 4.3.4), there is an error:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>
>> E:\Soliton_Projects\AuthenticateBox\MuscleCard\GPShell\GPShell-1.4.1>GPShell.exe
>>
>> helloInstallCyberflexAccess64k.txt
>> mode_201
>> enable_trace
>> establish_context
>> card_connect
>> * reader name OMNIKEY CardMan 5x21 0
>> select -AID a000000003000000
>> --> 00A4040008A000000003000000
>> <-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000
>> open_sc -security 1 -keyind 0 -keyver 0 -mac_key
>> 404142434445464748494a4b4c4d4e4
>> f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
>> --> 805000000861D77DE97BCBE87C00
>> <-- 00006000260C1F09B96A01019B37DE509064B7FF7F8D16FF18649CAC9000
>> --> 84820100105407669A700721A1C0F9274085136CAF
>> <-- 9000
>> delete -AID a00000006203010c0101
>> --> 80E400000C4F0AA00000006203010C010100
>> <-- 6A88
>> delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
>> delete -AID a00000006203010c01
>> --> 80E400000B4F09A00000006203010C0100
>> <-- 6A88
>> delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
>> install -file HelloWorld.bin -sdAID A000000003000000 -nvDataLimit
>> 1000 -instPara
>> m 00
>> file name HelloWorld.bin
>> -->
>> 80E602002009A00000006203010C0108A000000003000000000AEF08C60201A8C80203E80000
>>
>> <-- 6A80
>> install_for_load() returns 0x80206A80 (6A80: Wrong data / Incorrect
>> values in co
>> mmand data.)
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>
>> is there some version conflic? is the applet not compatble withwith the
>> card?
>
> This error occurs before the card can analyze the applet. I have no CF64
> card. Try to play with the parameters: e.g. is the Security Domain
> really a000000003000000? Maybe only a0000000030000. Specify -priv 02. Or

The Security Domain is a000000003000000

> execute each step for installing the load process one by one, see the
> file helloInstallCyberflexe-gate32k.txt for an example. For this CF card
> the convenience install method does not work:

Yes, if you use install command instead of install_for_load , laod and
install_for_install ,
it does not work!

>
> install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500
>
> load -file HelloWorld.cap.transf
>
> install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101
> -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500
>
> Try each command in sequence until it is successful (or not at all)
>
> Later for testing the load you must use HelloWorld.cap.transf. This is
> already transformed.
>
> Regards,
> Karsten
>>
>> I searchs the maillist archieve,and finds
>> http://archives.neohapsis.com/archives/dev/muscle/2007-q3/0062.html
>> It said :
>> ......
>> Use JavaCard 2.2 and a Java 1.2 compiler (or at least set the target
>> and
>> source to 1.2).
>> ......
>>
>> But The datasheet of the Cyberflex 64v2 says the card bases on JavaCard
>> 2.1.1
>> http://www.cyberflex.com/Products/techFeatures_access_64.html
>>
>> i want to convert the applet with CAP transformer from:
>> http://www.trusted-logic.com/down.php . The web sit can not be opened!
>> can someone give me a CAP transformer?
>>
>> Best Rgs,
>> Shengjun Lee
>> _______________________________________________
>> Muscle mailing list
>> Musclelists.musclecard.com
>> http://lists.drizzle.com/mailman/listinfo/muscle
>
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle