Page 1 of 1

How to encode an ECDSA Public Key on java card

Posted: Wed Oct 14, 2015 5:28 am
by user143839285163098
I want to encode an ECDSA Public Key on java card and then decode it on the other platforms.
As we all know, getEncoded() is not available on java card.
So how can i do this ?
Any ideas?

Re: How to encode an ECDSA Public Key on java card

Posted: Sat Oct 24, 2015 2:21 pm
by ThePhoenyx
If the card you are using doesn't have ECDSA abilities, I would suggest saving it as a byte object or wrapping the key(encrypting it) and then
saving it. It's about the only ways I can think of.

Re: How to encode an ECDSA Public Key on java card

Posted: Sun Oct 25, 2015 2:05 am
by user143839285163098
ThePhoenyx wrote:If the card you are using doesn't have ECDSA abilities, I would suggest saving it as a byte object or wrapping the key(encrypting it) and then
saving it. It's about the only ways I can think of.


I forgot to say that my card supports ECDSA. How can I save it as a byte object or encrypt it ?

Re: How to encode an ECDSA Public Key on java card

Posted: Sat Oct 31, 2015 1:09 pm
by ThePhoenyx
If it supports ECDSA, just import it with a setting of exportable. You would then be able to export it later to pass on to another card. As for saving things as objects, I would recommend using the muscle or coolkey applets as they both have 4 files that anything can be saved to. Just put the key in a byte array then save the array to one of the object files. You can find the muscle app on these forums and coolkey is available from either the Ubuntu or Debian Linux installs.