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.

Question about PUT KEY command

JavaCard Applet Development Related Questions and Answers.
wousim
Posts: 14
Joined: Tue Feb 16, 2016 10:12 pm
Points :109
Contact:

Question about PUT KEY command

Post by wousim » Wed May 04, 2016 2:28 am

I have read the section "PUT KEY command" in GlobalPlatform Card Specification 2.1.1
It defines the structure of this APDU command


Data field structure


But now I have a PUT KEY command:

Code: Select all

80 D8 01 00 16 CD E5 F1 B9 49 F1 1F A7 6B BF 0E 91 32 23 C2 E6 00


And I couldn't analyse this APDU following the above data field format.

Hope someone can help me understand this command well.
Thanks

I can now understand this PUT KEY command either.

Code: Select all

 80 D8 00 81 43 03 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47
You do not have the required permissions to view the files attached to this post. Please login first.
Last edited by wousim on Wed May 04, 2016 4:11 am, edited 3 times in total.

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: Question about PUT KEY command

Post by mabel » Wed May 04, 2016 3:46 am

For the first command, it seems that it's a command to put a single key of 16 bytes.

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: Question about PUT KEY command

Post by mabel » Wed May 04, 2016 3:57 am

For the second command,

1- 0x80
2- 0x10
3- 0x50 0xD2 0x82 0xEF 0xC4 0x24 0x0A 0xEB 0xBD 0x85 0xAD 0xE1 0xF7 0x71 0xED 0xA2, in this case n = 16 (0x10)
4- 0x03
5- 0x8B 0xAF 0x47, in this case n = 3. n = 0 if MAC is not present (so the 4th equals to 0x00)

The 2nd key and 3rd key are explained in the same way.

wousim
Posts: 14
Joined: Tue Feb 16, 2016 10:12 pm
Points :109
Contact:

Re: Question about PUT KEY command

Post by wousim » Wed May 04, 2016 4:18 am

Dear mabel,

I got it!

But could you please explain what is Key Check value field?

Thanks!

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: Question about PUT KEY command

Post by mabel » Wed May 04, 2016 5:45 am

wousim wrote: But could you please explain what is Key Check value field?


You can think that Key Check Value is a way to verify the key when it enters into the system.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 28 guests

JavaCard OS : Disclaimer