If I understand this, you want to use a public RSA key to encrypt key material 
for export?

The applet doesn't support it, but you could extend the applet (and the 
supporting code) to do this...

Look at the code for MSC_ExportKey as a starting point on the library side and 
at the corresponding code on the CardEdge.src/java side. 

You need to 
1) Import an RSA public key to be the wrapper.
2) Create a javacardx.crypto.Cipher instance with one of the RSA encryption 
types and initialize it with the RSA public key
3) Encrypt the key material you want to export
4) Export the key data from the card to the application.

One approach you might want to look at is 
http://www.ietf.org/internet-drafts/draft-ietf-smime-cms-rsa-kem-05.txt.  This 
allows you to wrap any amount of data rather than being limited to data less 
than the length of the RSA key.




At 06:29 2/26/2008, Anri Lau wrote:
>Hello All,
>
>We have a requirement of RSA Key Wrapping on the Card. $B#I(Bhave no idea 
>about this.
>Could any one give me some help, how should I start this work?
>
>-- 
>Best regards to you and your family 
>_______________________________________________
>Muscle mailing list
>[email protected]
>http://lists.drizzle.com/mailman/listinfo/muscle


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

Reply via email to