Hello After going through the source code, The conclusion I came to is 1. musclecard does not have signature capability (by signature I mean computing both the messagedigest of plain text and encrypting with private key, like ALG_RSA_SHA_PKCS1)
2. musclecard supports encryption and decryption, so I have to calculate the message digest off card and pad it and send it to the card to encrypt. (It supports something like ALG_RSA_PKCS1) thank you --- Christian Schneider <[EMAIL PROTECTED]> wrote: > vladimir lenin wrote: > > >Mr. schneider, > >You are not signing on the card itself. you are > >getting the certificate and key from the card and > >using them to sign on the host. I want the card > applet > >to sign the message digest I send. Correct me if > you I > >misunderstood aomething > >thank you > > > > > I create the digest on the host. > > But the signing is done on the card. The key is not > extractable. > > The library lets me find the private key on the > card. But I get only > a handle of the key that is then given to the > signing function. > > Perhaps the generation of the hash is the problem in > your case. > I think muscle can�t do SHA1RSA but only RSA. So the > hash has to be > generated outside the > card. > > In the library I used there is a function to request > the card�s > capabilities. > > best regards, > > Christian > > _______________________________________________ > Muscle mailing list > [EMAIL PROTECTED] > http://lists.drizzle.com/mailman/listinfo/muscle __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
