kaoh / globalplatform

C library + command-line for Open- / GlobalPlatform smart cards
https://kaoh.github.io/globalplatform/
Other
72 stars 30 forks source link

Unable to set Contactless Historic Bytes in GlobalPlatform 2.3 #28

Closed kaoh closed 4 years ago

kaoh commented 7 years ago

In GlobalPlatform 2.2 and earlier, the API method GPSystem.setATRHistBytes allowed me to change the Historic Bytes for both contact and contactless interfaces.

However, in GlobalPlatform 2.3 that method has been altered, and now only changes the Historic Bytes for the contact interface. Those for the contactless interface remain unchanged by it.

So far, I haven't found any replacement method which would allow me to continue changing the contactless historic bytes in GP 2.3. Do you know of a way to achieve this?

A lot of the solutions I am working on use the contactless historic bytes to identify cards when they are presented, and which environment they come from. I would rather not change this approach for GP 2.3 cards, if possible.

Reported by: actaylor5000

kaoh commented 7 years ago

Obviously this question pertains to the GlobalPlatform spec and APIs as a whole, rather than your C library. Maybe you can help me anyway!

Original comment by: actaylor5000

kaoh commented 4 years ago

It might be possible to change this with the file EF ATR. I'm not aware how to change this with a GP command and the internal GP API is not accessible. For now a won't fix.