Page 1 of 1

some basic questions about java card

Posted: Thu Jan 14, 2016 4:54 am
by notuo
I am a rookie in java card field. And I have some basic questions that need you all to help me.

1. Does javacard separate the data out of applet ? if Yes, how does it work?

2. When generating a key pair, we must random some numbers for making keys.
Where is the place that we calculate theses number?
-> on java card or the host?

Also sorry for my poor English~~

Re: some basic questions about java card

Posted: Thu Jan 14, 2016 10:18 pm
by corleoner
A1:
The data is not separate from the applet. The data is a part of the applet and it resides in private instance variables inside your applet code. The only way to access the data is via applet methods that you create.

Re: some basic questions about java card

Posted: Thu Jan 14, 2016 10:36 pm
by UNKNwYSHSA
Q2: Which algorithm you used?
See the api methods. There's no place to set the random number.
So the random is generated in the api implementation.

Also sorry for my poor English too. :D