My cards can work with wrong GP keys, why?
Moderator: horse dream
-
- Posts: 25
- Joined: Mon Nov 30, 2015 3:40 am
- Points :178
- Contact:
My cards can work with wrong GP keys, why?
As we all know, GP keys offcard should be the same as the keys on card. Otherwise, you can't do any operation on your card.
But I came across a strange thing. I used pyApdutool to operate my java card.
And, my card's GP keys are as follows:
S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
C-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
In pyApdutool, I set the GP key as:
S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4E
C-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
Though S-ENC key offcard is different with the key oncard, I can also upload and install applet successfully. It works fine with two different keys.
How strange it is! Could anyone tell me why this happened? Is this a bug in my card?
But I came across a strange thing. I used pyApdutool to operate my java card.
And, my card's GP keys are as follows:
S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
C-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
In pyApdutool, I set the GP key as:
S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4E
C-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
Though S-ENC key offcard is different with the key oncard, I can also upload and install applet successfully. It works fine with two different keys.
How strange it is! Could anyone tell me why this happened? Is this a bug in my card?
You do not have the required permissions to view the files attached to this post. Please login first.
Re: My cards can work with wrong GP keys, why?
You only changed the parity bit which is not used by the card. So no matter how you change this parity bit, it doesn't influence the outcome of cipher computation.
Who is online
Users browsing this forum: No registered users and 26 guests