SCP02 Put key problem
843851Mar 4 2008 — edited Jul 15 2008Hi,
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.