Replies: 1 comment
-
|
re-phrased your question, as it is NOT about GlobalPlatformPro. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am trying to authenticate with a SCP02 card but cannot recreate all the final value needed to send back as part of the host challenge.
I used gp.exe in debug mode using the card keys and it completes all the way through with my cap file. I took those values from debug to try and recrate the encryption process.
I have managed to calculate all of the values to this point and need to send the challenge response back to the card to get an authenticated session.
The response the debug sends back is:
84820100 10 C77FF05783002E7D 462CA867FE725100 00So the first part if the calculated host cryptogram but I cannot seem to fathom out how to calculate the second block of bytes.
The GP documentation says this is retail MAC and I have found umpteen supposed algorithms that suggest they are providing this within ISO 9797-1.
I have managed to generate the session keys to the same value from the card transport keys and I am using the generated MAC session key (16 bytes) as the suggested key.
I have tried:
But I just cannot generate this value.
Essentially, I have a c# app that I need to use to load the cap file onto the card but I just cannot seem to deduce this one value.
I have tried multiple DES libraries and I just know I am doing something simple and obviously wrong but I just cannot see it.
I would be very grateful for anyone who can spot my idiocy here.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions