Hi Damien,
I already successfully loaded the MCardApplet-0.9.11 into WebKomputing's
Smart Card. The reason why I failed it last time is the version of
javacardx.crypto is different. WebKomputing's javacardx.crypto is 1.1.
When I generated the CAP by using the Java_card_kit-2.2.1, the version of
javacardx.crypto was 1.2. When I used the Java_card_kit-2.1.2 to convert,
their versions are same.
But the new problem is that I can't format the token in the smart card. The
EEPROM space should have at least 10K left. Is it possible that OS of the
smart card has some problem caused the Applet could not work properly.
The CAP file has been verified and everything was OK.
Java Card vendor: WebKomputing (It should be JavaCard 2.1.1 compliant.)
######################################
muscle > tokens
1. MuscleCard Applet
muscle > format 1
Would you like to:
1. Use the default factory key: 2C15E526E93E8A19
2. Use the MUSCLE default key : 4D7573636C653030
3. Enter your own transport key
Choose (1-3): 2
How much object memory would you like to allocate ?
Example: 7096 (7k) : 3900
Please enter a new auth pin value (pin 0) : 00000000
Please enter your user pin value (pin 1) : 00000000
Please enter your user pin unblock value : 00000000
Please enter your number of pin tries : 5
********************* WARNING ! *********************
You are about to destroy all data on this token.
*****************************************************
Current admin pin : Muscle00
New admin pin : 00000000
New user pin : 00000000
New user unblock pin : 00000000
Number of tries : 5
Object memory : 3900
Are you sure you want to continue ? (1-YES, 2-NO): 1
Formatting token [*] : Failed (Invalid parameter)
muscle > muscle > format 1
Would you like to:
1. Use the default factory key: 2C15E526E93E8A19
2. Use the MUSCLE default key : 4D7573636C653030
3. Enter your own transport key
Choose (1-3): 2
How much object memory would you like to allocate ?
Example: 7096 (7k) : 3900
Please enter a new auth pin value (pin 0) : 00000000
Please enter your user pin value (pin 1) : 00000000
Please enter your user pin unblock value : 00000000
Please enter your number of pin tries : 5
********************* WARNING ! *********************
You are about to destroy all data on this token.
*****************************************************
Current admin pin : Muscle00
New admin pin : 00000000
New user pin : 00000000
New user unblock pin : 00000000
Number of tries : 5
Object memory : 3900
Are you sure you want to continue ? (1-YES, 2-NO): 1
Formatting token [***] : Failed (Internal Error)
muscle > muscle >
##########################################
Info.plist
##########################################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>mscMuscleCard</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.0.1d1</string>
<key>spVendorName</key>
<string>MUSCLE</string>
<key>spProductName</key>
<string>MuscleCard Applet</string>
<key>spAtrValue</key>
<string>3BFD5500FFC10AF1FA4D001F430068574B4A434F53303300900074</string>
<string>3BFD5500FFC10AF1FA4D001F430068574B4A434F53303300900074</string>
<string>3BA70040188065A209010252</string>
<string>3B751300009C02020102</string>
<string>3B6500009C02020102</string>
<string>3B3B94008065AF030D0174830F9000</string>
<string>3F6D000080318065B00501025E83009000</string>
<key>spDefaultApplication</key>
<string>A00000000101</string>
</dict>
</plist>
----- Original Message -----
From: "Damien Sauveron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 31, 2003 1:32 AM
Subject: Re: [Muscle] Failed to load the MCardApplet-0.9.11 into Smart Card
Hi,
> I am using a Java Card which provided by WebKomputing. I guess that the
> javacardx.crypto package is missing in this Java Card. I already wrote
> email to them to ask if this package is missing.
Ok but it is strange if the package is absent... but with the error it seems
this is the problem.
Do you have compile and convert the applet before to load it?
I think this because perhaps WebKomputing doesn't use the same export files
that those used for generating the cap file available in the tarball.
Indeed the cap file references the packages imported and perhaps the link
(i.e. the AID) to javacardx.crypto is bad and this may explain why the
javacardx.crypto is absent.
> If there is no javacardx.crypto package in this Java Card, is it possible
to
> amend the MCardApplet (disable the Cipher) and make it work except the
> Cipher?
Yes I think it is possible but you will lost many features such as
sign/crypt data (mail, ...).
To do this you must modify the source code of the MCardApplet to comment all
the part related about the Cipher class of javacardx.crypto.
After you have done this, compile and convert the applet before to load it.
If you don't have the same error as previously, it may confirm that the
javacardx.crypto is absent.
I hope you will not have the need to modify some parts of the tools such as
XCardII, muscleTools and other applications (PAM modules, PKCS#11, ...). But
I don't think.
Regards,
Damien Sauveron
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle