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.

initialize the key

JavaCard Applet Development Related Questions and Answers.
mukundis
Posts: 15
Joined: Wed Sep 14, 2016 4:08 am
Points :196
Contact:

initialize the key

Post by mukundis » Wed Oct 12, 2016 5:12 am

I created a RSAPrivateCrtKey in order to get the p prime via the getP() method.
My code:

Code: Select all

static RSAPrivateCrtKey prime =  = (RSAPrivateCrtKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_512, false);
...
//  initialize the RSAPrivateCrtKey
...
prime.getP(tab, (short)0);


But how to initialize the key? I don't know how to write this part of code.

wumindejia
Posts: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: initialize the key

Post by wumindejia » Wed Oct 12, 2016 10:28 pm

You can refer to viewtopic.php?f=31&t=737

Pf6KINE
Posts: 18
Joined: Wed Apr 13, 2016 2:03 am
Points :148
Contact:

Re: initialize the key

Post by Pf6KINE » Thu Oct 13, 2016 4:38 am

use genKeyPair method of KeyPair class

mukundis
Posts: 15
Joined: Wed Sep 14, 2016 4:08 am
Points :196
Contact:

Re: initialize the key

Post by mukundis » Thu Oct 13, 2016 5:29 am


Thanks for your help.

mukundis
Posts: 15
Joined: Wed Sep 14, 2016 4:08 am
Points :196
Contact:

Re: initialize the key

Post by mukundis » Thu Oct 13, 2016 5:30 am

Pf6KINE wrote:use genKeyPair method of KeyPair class


That's a good idea. Thanks a bunch.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 54 guests

JavaCard OS : Disclaimer