JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
How to encode an ECDSA Public Key on java card
Moderator: UNKNwYSHSA
-
- Posts: 5
- Joined: Fri Jul 31, 2015 9:34 pm
- Points :13
- Contact:
How to encode an ECDSA Public Key on java card
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?
As we all know, getEncoded() is not available on java card.
So how can i do this ?
Any ideas?
-
- Posts: 54
- Joined: Mon Jul 20, 2015 1:08 pm
- Points :510
- Contact:
Re: How to encode an ECDSA Public Key on java card
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.
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
And sometimes they permit themselves to be told.
~Cherokee Proverb
-
- Posts: 5
- Joined: Fri Jul 31, 2015 9:34 pm
- Points :13
- Contact:
Re: How to encode an ECDSA Public Key on java card
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 ?
-
- Posts: 54
- Joined: Mon Jul 20, 2015 1:08 pm
- Points :510
- Contact:
Re: How to encode an ECDSA Public Key on java card
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
And sometimes they permit themselves to be told.
~Cherokee Proverb
Who is online
Users browsing this forum: No registered users and 2 guests