Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

How to encode an ECDSA Public Key on java card

Algorithm School

Moderator: UNKNwYSHSA

user143839285163098
Posts: 5
Joined: Fri Jul 31, 2015 9:34 pm
Points :13
Contact:

How to encode an ECDSA Public Key on java card

Post by user143839285163098 » Wed Oct 14, 2015 5:28 am

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?

ThePhoenyx
Posts: 54
Joined: Mon Jul 20, 2015 1:08 pm
Points :510
Contact:

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

Post by ThePhoenyx » Sat Oct 24, 2015 2:21 pm

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.
The world is full of stories;
And sometimes they permit themselves to be told.
~Cherokee Proverb

user143839285163098
Posts: 5
Joined: Fri Jul 31, 2015 9:34 pm
Points :13
Contact:

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

Post by user143839285163098 » Sun Oct 25, 2015 2:05 am

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 ?

ThePhoenyx
Posts: 54
Joined: Mon Jul 20, 2015 1:08 pm
Points :510
Contact:

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

Post by ThePhoenyx » Sat Oct 31, 2015 1:09 pm

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.
The world is full of stories;
And sometimes they permit themselves to be told.
~Cherokee Proverb

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 18 guests

JavaCard OS : Disclaimer