Questions tagged [apdu]

APDU stands for "Application Protocol Data Unit". An APDU is used to communicate with smart cards and Subscriber Identity Modules (SIMs) conforming to standard ISO/IEC 7816-4.

From www.jguru.com:

The APDU (Application Protocol Data Unit) is the communication unit between a reader and a card. The structure of an APDU is defined by the ISO 7816 standards.

There are two categories of APDUs: command APDUs and response APDUs. As the name implies, the former is sent by the reader to the card: it contains a mandatory 5-byte header and from 0 to up to 255 bytes of data. The latter is sent by the card to the reader: it contains a mandatory 2-byte status word and from 0 to up to 256 bytes of data.

764 questions
0
votes
1 answer

PPSE and CRS relation when using INTERNAL mode

When use Internal mode of PPSE (Proximity Payment System Environment) I found that CRS(Contactless Registry Service) is coming to play in the process of Application selection. But could not found exact details about logical dependecy of each…
nish1013
  • 3,658
  • 8
  • 33
  • 46
0
votes
1 answer

RESET java card applet when power loss during transaction

I am new Java card development and I want to know how to handle transactions when power is lost during a transaction. I want to know is there way to reset internally when power is lost or remove java card from card terminal. In my Java card applet…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
0
votes
0 answers

Send data from android device to java card error

I am new to Android NFC development.I have created android application which using ISOdep send data to java card.In my java card applet i get data from APDU command and encrypted data using RSA2048 and send back to Android application.So I am using…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
0
votes
1 answer

How to send and get data using a single APDU in C++?

I am writing a C++ code using winscard. I noticed that, if I send a command with Scardtransmit where only data is sent or only data received, there is no problem. I can send data or get correct response. However, when the command both sends data…
user1927822
  • 3
  • 1
  • 3
0
votes
1 answer

Smart Card eToken PRO CardOS/M4 Digital Signature APDU

I've got a sample from eToken SDK that generates RSA keys, creates digital signature and verifies it. The algorithm in the sample is the following: generate RSA keys (GENERATE_KEY_PAIR); create security environment for signature…
0
votes
1 answer

How to import a key into a MUSCLE card?

I am trying to import a key into the card, but it is giving response as 6F00 (UNKNOWN ERROR).The procedure i followed to import a key is Load the (MUSCLE) applet Initialize the applet Verify the pin create the object with id (FF FF FF FE): -> B0…
123r789
  • 1,600
  • 3
  • 22
  • 33
0
votes
2 answers

APDU command to get the serial number of a smart card

How can I get the serial number of a smart card using APDU command? I have tried to query it by using SCardGetAttrib function of winscard.dll with no luck, I've been told to use an APDU command to do that since there is no standard way to get the…
SVI
  • 921
  • 4
  • 11
  • 23
0
votes
1 answer

Browse through file structure of a smart card with APDU commands

I have a smart card (the Carte Vitale that is used in France), and I need to know where the date of birth is stored. But I don't seem to find any information about the file structure. For the Belgian eID card I did the same, and I can easily read…
SonOfGrey
  • 241
  • 1
  • 4
  • 18
0
votes
0 answers

Read java card uid

i am new to java card development.i need to know how to read uid in java card using apdu commands .i couldn't find a solution.i found only how to select the Application id( APDU format 0x00,0xA4,0x04,00) same way i need to detect the uid in java…
Need
  • 97
  • 1
  • 11
0
votes
1 answer

What is the exact procedure to perform external authentication?

I am trying to perform external authentication on smart card, I got the 8 byte challenge from the card and then I need to generate the card cryptogram on that 8 bytes. But I don't know how to perform that cryptogram operation (smartcard tool kit…
123r789
  • 1,600
  • 3
  • 22
  • 33
0
votes
1 answer

Smart card asymmetric key generation

I'm at a dead end in researching how to generate asymmetric keys from a PIV card. I've looked through the NIST sp800-73-3 standards but I am not able to accomplish this. Outlined in part 3 of that document it shows them using INS 47 to do this but I…
nwnoga
  • 577
  • 3
  • 12
  • 22
0
votes
1 answer

Smart Card interaction with ACR122U

I'm trying to write an application that will interact with smart cards using an ACS ACR122U card terminal. According to all that I can find the API uses a combination of standard APDU commands and psuedo-APDUs to interact with the terminal, however…
Micheal Hill
  • 1,619
  • 2
  • 17
  • 38
0
votes
3 answers

APDU command for reading a Dedicated File

My goal is reading the content of a DF (Dedicated File). After selecting a DF like PKCS#15 AID (A0 00 00 00 63 50 4B 43 53 2D 31 35), which APDU command can i use to know his EFs (Elementary File)?
0
votes
1 answer

Communicate with NFC device - android device - ISO 7816-4

Is there any library in Android that can communicate with NFC device due to ISO 7816-4 standard? I mean ready commands that implements the APDU's and there's no need to send bytes manualy? Or maybe the only way to do it is to send to my device…
Doszi89
  • 357
  • 2
  • 5
  • 20
0
votes
1 answer

get APDU request error c++

So .. I have pcsc-reader, smartcard and c++ code. Find readers, chose them, connect and get ATR - working greatfull. but after ATR-get i need to get APDU request, this code SCARD_IO_REQUEST ioRecv; byte pbRecvBuffer[255]; int…
MIsha Ku
  • 1
  • 2