Amanda, - you didn't confirm that the applet you're using is the one present at: <http://www.linuxnet.com/musclecard/files/mcardapplet-0.9.8-GXPRAD.tgz> - you didn't indicate (or I miss) the JavaCard platform you're using.
assuming it's the right applet and your platform is not buggy, I can confirm that the applet is enable to encrypt (wrap) a plain text with a RSA public key and recover (unwrap) plain text from the returned ciphertext and the matching privat key - I finally run it under a JCV simulator and a script built from the "Muscle Cryptographic Card Edge Definition for Java Enabled Smartcards" (despite the 0.9.8 applet does not comply with that spec.). the applet does these operations in a not efficient way, but it works for RSA_X509 cipher. btw the RSA PKCS#1 cipher is actually not supported by the applet that only offers *unsafe* not padding mode. (RSA PKCS#1 it is present in JavaCard since ... always). I think your "012" string ciphered in RAW mode in the log of your first post was padded by the driver and/or muscletool, definitively not by the applet. an APDU log - as adviced by Karsten - will help to understand where the mistake comes from, it can be either: - a mistake between the two keypairs, - incorrect APDU built by the applet driver, - RSA computation bugs on the card. Sylvain. _______________________________________________ Muscle mailing list Muscle@lists.musclecard.com http://lists.drizzle.com/mailman/listinfo/muscle