smartcard

Behavior of javax.smartcardio.Card.disconnect(boolean reset) in JDK 7u79?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 05:38:06
问题 According to the release notes of JRE 7u72: Change in javax.smartcardio.Card.disconnect(boolean reset) method behavior Prior to the JDK 8u20 and JDK 7u72 releases, the javax.smartcardio.Card.disconnect(boolean reset) method had inverted logic for the 'reset' boolean value passed to it. The card was reset upon a disconnect if false was passed to it and vice versa. Starting with JDK 7u72 and JDK 8u20, the correct behavior as per API documentation has been implemented. In order to provide

Parse CV Rule from CVM List for EMV

房东的猫 提交于 2019-12-21 04:51:36
问题 I have succesfully retrieved the CVM List from EMV card. 0000 0000 0000 0000 4103 4203 1E03 1F02 From the EMV specification book 3, the first 4 bytes and second 4 bytes are amount and rest is CV rules. Making these the CV Rule 4103 4203 1E03 1F02 The book also shows how to parse the CV rules, as shown below: I am assuming that I need to convert the first two bytes in a CV rule to binary and match with the table above? But why does the table above have empty cells? Also can someone explain in

How to read credentials from a SmartCard in c#

ぃ、小莉子 提交于 2019-12-21 02:51:33
问题 In my organization, users must use SmartCard for interactive login to a Windows stations (95,Vista and 7). almost daily, we need to read the credentials stored in the SmartCard and compaire them with the ActiveDirectory, without implementing a custom credentials manager. The fields we compare are: userPrincialName and sAMAccountName. Can you please show me a code that demonstrates how to read the credentials from the SmartCard or guide me to an article / code on the internet? A search over

Required Things to start Smartcard Programming Using Javacard

こ雲淡風輕ζ 提交于 2019-12-20 23:27:25
问题 I wanted to start with the smartcard programming soon. Please help me the things required for starting the learning using javacard. Which IDE (If any IDE Supports), Software and Hardware related? Like Mobile phone simulator is there any smartcard simulator or else if I have to buy a smartcard specify those cards where and how I can get? 回答1: A general answer regarding smartcard programming is that you should be ready to navigate a confusing list of tools and technologies. Typically smartcard

How can I check INITIALIZE UPDATE and EXTERNAL AUTHENTICATE correctness?

微笑、不失礼 提交于 2019-12-20 15:32:11
问题 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

How to load CAP file to java card

半腔热情 提交于 2019-12-20 07:49:05
问题 I am new to java card,Can you help me how to parse Aplet CAP file into the APDU, For installing this CAP file to the card suported GP2.2. 回答1: You should try using GPShell which will do the work for you. You need to perform a number of GlobalPlatform commands : Install [for load] Load Install [for install and make selectable] GPshell will do this for you, as well as the security (you need to authenticate with SCP02, in a script that will look like this : mode_211 enable_trace establish

Process method does not receive full APDU command from host?

◇◆丶佛笑我妖孽 提交于 2019-12-19 09:53:52
问题 The host sends the following command to applet to select EF file 00 A4 02 00 02 40 01 The purpose is to select EF file with ID 40 01 (which is specified in the data field of the command). But when I debug the process(APDU apdu) method, the APDU buffer only contains the 5 first bytes 00 A4 02 00 02 . The data field is set to 00 00 . So my applet cannot select the EF using EF ID. Could you tell me what is wrong with my APDU command above? 回答1: Depending on the card (or emulator), the APDU

APDU command to get the serial number of a smart card

时光怂恿深爱的人放手 提交于 2019-12-19 05:07:13
问题 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 serial number. The problem is that I can't figure out what type my smart cards are! So I have looked into the documents of few of popular smart card manufacturers with no luck to find a way to get the serial number!! My card reader is ACR88. 回答1: In

Reading big file from a javacard applet

你。 提交于 2019-12-19 04:16:34
问题 I am writing an applet that stores 3 files of different sizes 5 Kb, 7 Kb and 11 Kb. I have got no problems with storing the files inside the applet. But when I try to read them back, I can only read the first two (smaller files). The third file throws an exception: javax.smartcardio.CardException: Could not obtain response at sun.security.smartcardio.ChannelImpl.doTransmit(Unknown Source) at sun.security.smartcardio.ChannelImpl.transmit(Unknown Source) I have tried to figure out the problem

Transmission error for T=0 JavaCards

梦想与她 提交于 2019-12-19 04:14:08
问题 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