Generate PrivateKey using byte array
828571Jan 4 2011 — edited Jan 5 2011Hi,
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