Page 1 of 1

What's the command used to do in WalletDemoApplet?

Posted: Mon Oct 03, 2016 11:47 pm
by whitexiao
I found an applet called WalletDemoApplet in JCKit.
On the code line L159, there is a command "00 84 00 00 08" in case statement.
What's this command used to do? When will we use this command?
Can anyone one help me? Thanks

Re: What's the command used to do in WalletDemoApplet?

Posted: Tue Oct 04, 2016 12:19 am
by UNKNwYSHSA
whitexiao wrote:I found an applet called WalletDemoApplet in JCKit.
On the code line L159, there is a command "00 84 00 00 08" in case statement.
What's this command used to do? When will we use this command?
Can anyone one help me? Thanks

Get 8 random bytes as challange? For external authentication.

Re: What's the command used to do in WalletDemoApplet?

Posted: Tue Oct 04, 2016 6:44 am
by Tolice
Card uses this command to generate a random number and tranimit it to the outside card. The outside card application will generate a string of ciphertext using this random number and the agreed algorithm and then transmit it to the card when executing the next command "80 82 00 00 Lc + Cipher". Card will compare this ciphertext with the ciphertext generated in card. If same, it indicates that the outside card application is safe and reliable. That is external authentication process.

Re: What's the command used to do in WalletDemoApplet?

Posted: Sat Oct 08, 2016 9:49 pm
by whitexiao
UNKNwYSHSA wrote:
whitexiao wrote:I found an applet called WalletDemoApplet in JCKit.
On the code line L159, there is a command "00 84 00 00 08" in case statement.
What's this command used to do? When will we use this command?
Can anyone one help me? Thanks

Get 8 random bytes as challange? For external authentication.


Yes, it used for external authentication. Thank you UNKNwYSHSA .