apdu

APDU Write block commands on mifare classic

时光毁灭记忆、已成空白 提交于 2020-01-13 20:26:32
问题 I have been trying to write some data to my mifare classic cards. first I send these two commands which returns 90 00: Load Mifare Keys: FF 82 20 01 06 FF FF FF FF FF FF Authenticate: FF 86 00 00 05 01 00 01 60 01 now I can write commands to sector 0 and block 1 + 2 ff d6 00 01 10 14 01 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 ff d6 00 02 10 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 i mistakenly overwritten block 3 a few times rendering this sector unreadable it seems: if I send the

Send more than 261 bytes to Java Card with Android NFC

两盒软妹~` 提交于 2020-01-13 19:07:46
问题 I want to send an APDU with a length of 1699 bytes via NFC (class IsoDep ) to a Java Card smartcard. I get the error java.io.IOException: Transceive length exceeds supported maximum My phone is a Samsung Galaxy S7. I use extended-length in my applet on the card. I have verified that the card supports extended length. I tested this via pyapdutool by sending an APDU with 4000 bytes to the card. I found that when I write this code, the result is false : final Tag t = (Tag) tag; myTag = IsoDep

Initial handshake between NFC controller and POS reader

旧街凉风 提交于 2020-01-02 14:59:02
问题 I have few questions when the reader initiates the transaction with NFC emulated payment application using HCE Does the reader send the PPSE command as with the regular contactless card infrastructure? Does the host controller respond to PPSE command with the list of AID's from the registered AIDs listed in the routing table? So after the reader selects the AID, the host controller directs to the right HCE service? Please correct my understanding on the above concept. 回答1: An EMV payment card

Initial handshake between NFC controller and POS reader

六月ゝ 毕业季﹏ 提交于 2020-01-02 14:58:15
问题 I have few questions when the reader initiates the transaction with NFC emulated payment application using HCE Does the reader send the PPSE command as with the regular contactless card infrastructure? Does the host controller respond to PPSE command with the list of AID's from the registered AIDs listed in the routing table? So after the reader selects the AID, the host controller directs to the right HCE service? Please correct my understanding on the above concept. 回答1: An EMV payment card

Android Host Card Emulation with Arduino

≡放荡痞女 提交于 2020-01-01 19:34:49
问题 I am trying to build a communication between my Nexus4 HCE and Arduino PN532 Chip. on The Serial Monitor of Arduino,I could see some data transaction happening. But on ANdorid side, I get CET4T: Unsupported Class byte (0x60) CET4T: Unsupported Class byte (0xA0) BrcmNfcNfa﹕ UICC[0x0] is not activated Below is my apduservice.xml <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:apduServiceBanner="@drawable/ic_launcher

Android Host Card Emulation with Arduino

女生的网名这么多〃 提交于 2020-01-01 19:34:05
问题 I am trying to build a communication between my Nexus4 HCE and Arduino PN532 Chip. on The Serial Monitor of Arduino,I could see some data transaction happening. But on ANdorid side, I get CET4T: Unsupported Class byte (0x60) CET4T: Unsupported Class byte (0xA0) BrcmNfcNfa﹕ UICC[0x0] is not activated Below is my apduservice.xml <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:apduServiceBanner="@drawable/ic_launcher

Unkown error 0x16 on smartcard reader access

孤街醉人 提交于 2020-01-01 16:56:11
问题 I am trying to change the buzzer duration on the ACR1252U. Link to API: http://www.acs.com.hk/download-manual/6402/API-ACR1252U-1.09.pdf According to the API documentation I need the 'E0000028010A' command to change the buzzer status, whereby '0A' marks the duration as 0A*10ms (Page 44). Following Java code is used: public static void main(String[] args) { try { byte[] send = new byte[6]; send[0] = (byte) 0xE0; // Commandclass send[1] = (byte) 0x00; // Protocoll send[2] = (byte) 0x00; //

JCWDE : Exception from install() method

余生颓废 提交于 2020-01-01 07:22:17
问题 I am working on JavaCard and I developed an applet with JCDE on Eclipse: import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISO7816; import javacard.framework.ISOException; import javacard.framework.Util; import javacardx.framework.math.BigNumber; import javacard.security.CryptoException; import javacard.security.MessageDigest; public class SignatureGPS extends Applet { public static final byte CLA = (byte) 0xB0; public static final byte INS = (byte)

Type B NFC Chip in US Passport MRTD

試著忘記壹切 提交于 2020-01-01 03:45:09
问题 I am trying to read a US Passport, issued 2010. It has an NFC chip in it using type B modulation. Most countries use Type A so I am just trying Type B now for the first time. I am using an NXP PN532 NFC Controller. I am using the inCommunicateThru instruction rather than the inDataExchange since I need to manually control the timeouts and error handling to successfully talk to a type B chip on this model NFC controller. I had to implement parts of the ISO-14443-4 protocol myself, such as the

How to get AID for reader Host based card emulation

天涯浪子 提交于 2019-12-31 10:48:47
问题 I'm trying to do Host card emulation on an Android device using this example using ACR1281U NFC tag reader. This is the kind of application I want to make. As per the Android documentation and the example, it is required to register an AID in the Android project: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:requireDeviceUnlock="false"> <aid-group android:description="@string/aiddescription" android:category=