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.

Generate Random number on card and on terminal?

Algorithm School

Moderator: UNKNwYSHSA

User avatar
wintstar
Posts: 14
Joined: Sun Jul 26, 2015 11:06 pm
Points :119
Contact:

Generate Random number on card and on terminal?

Post by wintstar » Tue Dec 01, 2015 5:21 am

I am implementing a mutual authentication and I am wondering about Random number generation.

Code: Select all

RandomData rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM); 
rnd.generateData(RP, (short) 0, (short) 16);


Needless to say, this code works fine. But according to my specifications, in order to do a three-way challenge-and-response I need to have a Random Number Generator on the terminal and on the picc. This is confusing me, since I am only aware of this way to create random data and would use this way of implementing it twice, once in the install-method, once in the relevant process-method.

User avatar
vermont
Posts: 13
Joined: Tue May 26, 2015 10:18 pm
Points :6
Contact:

Re: Generate Random number on card and on terminal?

Post by vermont » Wed Dec 02, 2015 8:55 am

The terminal. Usually the terminal system sends the commands to the card. So if you would run a Java application with javax.smartcardio then you could use the Java Standard Edition SecureRandom class.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 22 guests

JavaCard OS : Disclaimer