Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generate PrivateKey using byte array

828571Jan 4 2011 — edited Jan 5 2011
Hi,

I'm working on my college project, where I should simulate DDA authentication. I placed my private and public keys inside byte[] variables in applet, and in order to encrypt and decrypt messages I have to convert these byte arrays to PublicKey and PrivateKey objects. I know that javacard.security defines a key factory class keyBuilder, but I cannot figure out how to use this class, to reconstruct my keys, which are in byte array. Is there a way to do this?

Thanks,
Vuk
This post has been answered by Sebastien_Lorquet on Jan 5 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2011
Added on Jan 4 2011
5 comments
1,564 views