globalplatform

How can I check INITIALIZE UPDATE and EXTERNAL AUTHENTICATE correctness?

孤人 提交于 2019-12-03 10:09:27
I sent 80 50 00 00 08 00 00 00 00 00 00 00 00 [ INITILIZE UPDATE Command] via opensc-tool to my java card and received 00 00 11 60 01 00 8A 79 0A F9 FF 02 00 11 79 11 36 5D 71 00 A5 A5 EC 63 BB DC 05 CC [ Init Response ] as its response from the card. As you see: In the command,I send 00 00 00 00 00 00 00 00 as Host Challenge , And in the response : 00 00 11 60 01 00 8A 79 0A F9 = Key diversification data FF 02 = Key information 00 11 79 11 36 5D 71 00 = Card challenge A5 A5 EC 63 BB DC 05 CC = Card cryptogram Now I want to check myself,if the card cryptogram is OK or not. How I can do it? for

Upload a .cap file on Smart Card?

孤街醉人 提交于 2019-12-02 06:25:14
问题 I have a fresh card with the below code as its ATR. 3B 68 00 00 00 73 C8 40 12 00 90 00 I searched this ATR in google and finally I know this is a "Brazilian e-CPF card". the question is how I can use this card? I mean what APDUs for example it supports? is there any datasheet for it? is it a javacard? [if yes] how I can upload a .cap file in it? is there any default key for it? and a lot of this kind of questions. the mainly question is that : what kind of data I can gain from an ATR? btw I

Upload a .cap file on Smart Card?

自作多情 提交于 2019-12-02 01:12:18
I have a fresh card with the below code as its ATR. 3B 68 00 00 00 73 C8 40 12 00 90 00 I searched this ATR in google and finally I know this is a "Brazilian e-CPF card". the question is how I can use this card? I mean what APDUs for example it supports? is there any datasheet for it? is it a javacard? [if yes] how I can upload a .cap file in it? is there any default key for it? and a lot of this kind of questions. the mainly question is that : what kind of data I can gain from an ATR? btw I use ACR38 SmartCard reader. and I create a .cap javacard program in Eclipse. Next Question: I use GPJ

Transmission error for T=0 JavaCards

筅森魡賤 提交于 2019-12-01 01:27:19
I have 4 different types of JavaCards. For a weird purpose, I wrote the following applet to return whole the APDU buffer on reception of each APDU command: package bufferReturner; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISOException; public class BufferReturner extends Applet { private BufferReturner() { } public static void install(byte bArray[], short bOffset, byte bLength) throws ISOException { new BufferReturner().register(); } public void process(APDU arg0) throws ISOException { arg0.setOutgoingAndSend((short)0, (short)256); } } When I