Just to be clear: the examples shown here are for the old version. Havent tried your new one yet.

2005/11/4, matheus ribeiro <[EMAIL PROTECTED] >:
Hi Karsten, thanks for the link. Ill try it ASAP. There was a compilation error, a function with more arguments, which I easily changed. If I enable version 2, I get lots of errors because of musclecard.h. For example:

muscleTool.c:495: error: structure has no member named `cipherSignatureMode'
muscleTool.c:496: error: structure has no member named `cipherCipherMode'

These new fields are in your new musclecard.h.

As for the crypt, I generated a pair of keys, as show in the previous mail, with no errors. Then I try to sign for example:
These are the keys:
        Key Type  Key Num SIZE    READ   WRITE     USE
 ---------------  ------- ----  ------  ------  ------
 RSA PRIVATE CRT        0 2048  ALWAYS  ALWAYS  ALWAYS
      RSA PUBLIC        1 2048  ALWAYS  ALWAYS  ALWAYS

muscleTool [MuscleCard Applet] > crypt 1

Would you like to:
0. Abort this selection.
1. Verify
2. Encrypt

Choose (0-2): 2

Please enter text to encrypt in hexadecimal ASCII (at most 1023 characters)
Example: 30313233 for 0123

'a' aborts this query.
Enter text : 3031

Select the algorithm:
0. Abort this selection.
1. RSA with no padding
2. RSA with PKCS#1 padding

Choose (0-2): 2
ERR: Crypt Failed ! (0x9C03 Operation not allowed)
muscleTool [MuscleCard Applet] > crypt 1

Would you like to:
0. Abort this selection.
1. Verify
2. Encrypt

Choose (0-2): 2

Please enter text to encrypt in hexadecimal ASCII (at most 1023 characters)
Example: 30313233 for 0123

'a' aborts this query.
Enter text : 3031

Select the algorithm:
0. Abort this selection.
1. RSA with no padding
2. RSA with PKCS#1 padding

Choose (0-2): 1
ERR: Crypt Failed ! (0x9C05 Feature unsupported)

Both PINs are verified:
 Protocol Version: 0.1
 Software Version: 0.7
      Free Memory: 3846
     Total Memory: 9000
        PINs Used: 2
        Keys Used: 2
       Logged IDs: PIN #0 PIN #1

Im kinda lost here. With the private key I cannot sign.
muscleTool [MuscleCard Applet] > crypt 0

Would you like to:
0. Abort this selection.
1. Sign
2. Decrypt

Choose (0-2): 1

Please enter text to sign in hexadecimal ASCII (at most 1023 characters)
Example: 30313233 for 0123

'a' aborts this query.
Enter text : 3031

Select the algorithm:
0. Abort this selection.
1. RSA with MD5 hash and PKCS#1 padding

Choose (0-1): 1
ERR: Crypt Failed ! (0x9C03 Operation not allowed)

Sometimes, if I create an object in the card, I can sign, but then, the card becomes useless (cannot connect anymore). Any clue?

Thanks a lot
Matheus




Hi Matheus,

This is for a new version of MuscleCard. With extended functionality,
much more keys, algorithms, delete key, objects, PINs and something
more. If you want to check it out
http://web.inf.tu-dresden.de/~ko189283/MuscleCard/, but you should not
expect a stable basis.

I asked, because I did not test the current version which is in SVN in
Linux and the (old) MuscleCard, so I thought there are at least
compilation warnings. What errors Do you have? Which errors do you have
with crypt? Programming errors or error from the card? What card do you
have? Have you detected an error in the applet? You can try the versions
from above, they should be working (except for the RSA bug of the JCOP
41 v2.2 ...)



_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to