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!

SCP02 Put key problem

843851Mar 4 2008 — edited Jul 15 2008
Hi,
I have next troubles, command put key fail, with 6982 code.
Secure channel mode - 3.
I don't have any problem with creating secure channel, it creates correctly, I think problem is with encrypting command or maybe with data.
In SCP01 I do not any operation with LastMac, but as I see in GlobalPlatform Library source, when we use SCP02, we must encrypt Last Mac with DEK Session key, it's correct ? Then I generate new mac for put key command, using "new" LastMac value as ICV. Next I encrypt command with AuthEnc Session key and append mac to result command.
In Put key I set algo as 0x81, len - 0x10, and CheckValue len - 0x3. This procedure work fine with CyberFlex card.
PS. JCOP Support don't send me any responce. Nice support ...
PSS. Maybe somebody explain me how to work with this SCP02 or have SCP02 implementation example.
-Regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2008
Added on Mar 4 2008
20 comments
1,985 views