Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help: Analyse PUT KEY apdu?

hoaibaotreOct 18 2011 — edited Oct 27 2011
Hi all,

I have an PUT KEY apdu like this:

1) 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

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

And in GP 2.1.1 specification, coding of PUT KEY apdu like this:
CLA '80' or '84'
INS 'D8' PUT KEY
P1 'xx' Reference control parameter P1
P2 'xx' Reference control parameter P2
Lc 'xx' Length of data field+*
_Data 'xxxx..' Key data (and MAC if present)_
Le '00'

And data field structure like this:
_1byte Key type_
_1byte Length of key or key component_
Variable: 1-n Key or key component data value
_1byte Length of key check value_
Variable: 0-n Key check value (if present)

I can't analyse above apdu(s) follow that format.

Please explain for me!

Thanks,
HoaND

Edited by: hoaibaotre on Oct 19, 2011 9:00 AM

Edited by: hoaibaotre on Oct 19, 2011 9:13 AM
This post has been answered by Jean-Damien LEBUI on Oct 19 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2011
Added on Oct 18 2011
21 comments
2,155 views