This discussion is archived
4 Replies Latest reply: Mar 7, 2012 7:52 AM by 917095 RSS

JCOP41 and EC keys

917095 Newbie
Currently Being Moderated
Hi,


I tried to use EC keys over prime fields on my JCOP41.
ecPublicKey = (ECPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_EC_FP_PUBLIC, KeyBuilder.LENGTH_EC_FP_112, false);
Is it possible it is not supported? I have the following error in my terminal:
install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
So I cannot install my applet on my card anymore. What is weird is that there is no problem for fields with polynomial basis.
ecPublicKey = (ECPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_EC_F2M_PUBLIC, KeyBuilder.LENGTH_EC_F2M_163, false);
I saw a similar problem with HMAC in

JCOP & HMAC-SHA1 Signature

Is there something I can do to use ECC over prime fields on my JCOP?


Thanks
Guillaume

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points