apdu

EMV Reading PAN Code

与世无争的帅哥 提交于 2019-12-10 10:14:58
问题 I need to read the PAN Code of every possible card through chip. In my job I have to use only C and I haven't routines that can help me in this boring task. So that's the steps APDU that I use: 1) SELECT 1PAY.SYS.DDF01 00 A4 0400 0E 315041592E5359532E4444463031 and then 00 C0 0000 22 315041592E5359532E4444463031 from the response to read all datas. Complete Response: 6f 20 e 84 31 50 41 59 2e 53 59 53 2e 44 44 46 30 31 a5 e 88 1 1 5f 2d 69 8 74 65 6e 66 72 65 73 90 2) READ RECORD to get the

Control full APDU with NFC Software Card Emulation on Android

自闭症网瘾萝莉.ら 提交于 2019-12-09 18:42:18
问题 I'm busy with an app to emulate normal APDU communication on a Nexus 7 with CM10.1 to an ACR122U102 reader/writer. I found this blog about software card emulation and wrote an app to make my device (the nexus) appear as a card. Now I'm trying to send messages back and forth between this device and the ACR122u. So far, I've only managed to communicate with the nexus 7 by sending D4 40 01 (InDataExchange page 127) APDU's. For the application I'm writing, this should be sufficient. The problem

Are there any Android phones which support extended APDUs?

我只是一个虾纸丫 提交于 2019-12-09 06:28:34
问题 I am developing an Android app which has function to read data from a smart card. By default, NFC Controllers support APDU command with maximum transceive length is 261 bytes in single command. Because of large data need to be read on the card, the speed of reading is very slow. Are there any Android phones which support extended APDUs allow to send more than 261 bytes in single APDU ? Or are there any ways to modify the maximum transceive length by calling Android API to allow to do that? I

How to define an APDU for STORE DATA for Host Card Emulation?

一笑奈何 提交于 2019-12-08 18:56:32
I have been looking in the Global Platform Spec on how to define an APDU for my app which will use Host Card Emulation (HCE). My app is supposed to have one phone behaving like an NFC tag through HCE and another phone acting as the NFC reader. The arbitrary data that i am trying to transfer between the phones is just a simple string containing an ID number, but I'm not really sure how to apply it in the code. I have looked at what the different byte commands mean but I'm really not sure how to apply it. I think I need to use the STORE DATA command but I'm not sure how to intuitively do it and

Why I can't receive APDU buffer contents?

笑着哭i 提交于 2019-12-08 07:42:49
问题 I wrote the following program to return all the APDU buffer contents on reception of each APDU command: package testPack; 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 { if

APDU read file java card program

☆樱花仙子☆ 提交于 2019-12-08 07:33:35
问题 i made java card classic applet using netbeans when i program the read operation i check for the first byte in the APDU to be 0x80 then the second to be 0xB0 then take the offset that i will read from in the file from the byte 2 and 3 then take the number of bytes to be read from byte 4 to be the APDU as the default one 0x80 0xB0 0x00 0x03 0x60 this read 60 bytes from the current file starting by offset number 3 when i try this command it returned error Input data length != Lc around line 12

What are the requirements for IssuerScripts

不问归期 提交于 2019-12-08 06:11:49
问题 I am totally stumped about Issuer Scripts in EMV. I know what they are and I have read the EMV book 3. I was wondering if anyone has a good summary that tells me: Parse the script based on "86". Then based upon some values do this or that. Thanks 回答1: Content of EMV TAG 0x86 is ready to use APDU command for the smartcard. It could be any of EMV or ISO 7816 Commands actually and should be translated to smartcard thru EMV terminal application/kernel without additional modifications. Here are

How to define an APDU for STORE DATA for Host Card Emulation?

梦想与她 提交于 2019-12-08 04:52:40
问题 I have been looking in the Global Platform Spec on how to define an APDU for my app which will use Host Card Emulation (HCE). My app is supposed to have one phone behaving like an NFC tag through HCE and another phone acting as the NFC reader. The arbitrary data that i am trying to transfer between the phones is just a simple string containing an ID number, but I'm not really sure how to apply it in the code. I have looked at what the different byte commands mean but I'm really not sure how

“GET PROCESSING OPTIONS” always 6700(wrong Lc or Le)

╄→尐↘猪︶ㄣ 提交于 2019-12-08 03:54:54
问题 I'm trying to read a smartcard via my LG P710 Optimus L7 2. I'm following this tutorial I can select the "1PAY.SYS.DDF01" directory I can select the Application But I can't perform an "GET PROCESSING OPTIONS" It always result in an 6700 error (Lc or Le wrong) here is my code NfcAdapter mNFCAdapter; Intent intent; PendingIntent pendingIntent; private TextView mTextView; String[][] techList; IntentFilter[] filters = new IntentFilter[3]; @Override protected void onCreate(Bundle

Java Card Connecting To a Simulator failed

喜你入骨 提交于 2019-12-08 01:22:53
问题 I am trying to test a Java Card applet to establish a connection to a simulator such as cref: try { sckClient = new Socket("localhost", 9025); InputStream is = sckClient.getInputStream(); OutputStream os = sckClient.getOutputStream(); cad = CadDevice.getCadClientInstance(CadDevice.PROTOCOL_T0, is, os); } catch (Exception e) { System.out.println("error"); return; } try { cad.powerUp(); } catch (IOException e) { e.printStackTrace(); } catch (CadTransportException e) { System.out.println("error"