javacard

Delete APDU command with SSD AID in its data field, returns 6985

左心房为你撑大大i 提交于 2021-02-18 12:11:54
问题 I have a Javacard which contains a SSD (Supplementary Security Domain) and I want to delete it. Normally when I want to delete an applet or a package from my card, I send the following DELETE APDU command after a successful Mutual Authentication process (No MAC or data field encryption is required and Security Level == 0 is enough for DELETE APDU command): --> 80 E4 00 00 LC 4F <AID Len> <AID> <-- 90 00 The command above works fine for normal applets. But when I put the AID of my SSD in it,

Delete APDU command with SSD AID in its data field, returns 6985

喜欢而已 提交于 2021-02-18 12:11:31
问题 I have a Javacard which contains a SSD (Supplementary Security Domain) and I want to delete it. Normally when I want to delete an applet or a package from my card, I send the following DELETE APDU command after a successful Mutual Authentication process (No MAC or data field encryption is required and Security Level == 0 is enough for DELETE APDU command): --> 80 E4 00 00 LC 4F <AID Len> <AID> <-- 90 00 The command above works fine for normal applets. But when I put the AID of my SSD in it,

gp.exe -list return always Cryptogram Failed

杀马特。学长 韩版系。学妹 提交于 2021-02-11 13:00:19
问题 I have changed my defaults keys to A068CD198555AF5ACC823DFAE8A7827A. but the command from gp -l return always Cryptogral Failed. note: I can authenticate with script file on GPShell I can download applet, install applet and select applet with pyResMan I can transmit APDU with pyResMan I can authenticate with pyResman GPShell script mode_211 enable_trace establish_context card_connect select -AID A000000003000000 open_sc -scp 2 -scpimpl 0x15 -security 1 -keyind 0 -keyver 1 -key

gp.exe -list return always Cryptogram Failed

青春壹個敷衍的年華 提交于 2021-02-11 12:59:06
问题 I have changed my defaults keys to A068CD198555AF5ACC823DFAE8A7827A. but the command from gp -l return always Cryptogral Failed. note: I can authenticate with script file on GPShell I can download applet, install applet and select applet with pyResMan I can transmit APDU with pyResMan I can authenticate with pyResman GPShell script mode_211 enable_trace establish_context card_connect select -AID A000000003000000 open_sc -scp 2 -scpimpl 0x15 -security 1 -keyind 0 -keyver 1 -key

why DELETE Key APDU command returns 6A80 Status words?

余生长醉 提交于 2021-02-11 08:20:20
问题 I'm going to delete an existent key from my card's ISD. To do so I sent a DELETE Key APDU command with corresponding KeyID and KeyVersion to the ISD after a successful Mutual Authentication as below: --> 00 A4 04 00 08 A0 00 00 01 51 00 00 00 <-- 6F 5B 84 08 A0 00 00 01 51 00 00 00 A5 4F 73 49 06 07 2A 86 48 86 FC 6B 01 60 0B 06 09 2A 86 48 86 FC 6B 02 02 02 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2A 86 48 86 FC 6B 02 01 03 66 0C 06 0A 2B 06 01 04

Using a Java Card with Bitlocker

一世执手 提交于 2021-02-08 07:26:21
问题 I want to use J2A040 JCOP 21-36k java cards to implement a smart card driven bitlocker-to-go solution using gidsapplet and OpenSC but when attempting to put a certificate on the card (certreq -new) I have not been able to get past the "The smart card is not fully personalized for use" error from windows. This is the dump contents with gids-tool: Dumping Files: Found 5 entries in the masterfile Directory: mscp FileIdentifier: 0xa000 File: \cardid FileIdentifier: 0xa012 DataObjectIdentifier:

JavaCard 3 in real world?

你。 提交于 2021-02-06 10:19:28
问题 I'm currently working on my diploma work. Part of the work includes development of JavaCard applet for regular SIM cards. First option is to use JavaCard2.X API and use APDU commands to communicate with the applet. This might be very tricky as I need to develop client-app for android (which will be communicate with this applet) and that is so far possible only trough special - not so user friendly - API called Seek-for-android . (if I'm wrong, please correct me) However, I also came across

How to convert object of class into hexadecimal array in java

↘锁芯ラ 提交于 2021-02-05 08:28:07
问题 An object of class having some data and I am gone write that object into java card. I am having a function that convert hexadecimal data into byte array and then write that data to smart card using java card. While i convert data into hex format i encrypt that data. So i need to convert object of class into hexadecimal. Please tell me how to convert object into Hex format in java. I am using smart card type = contact card using java card 2.2.2 with jcop using apdu. 回答1: Here i am sending you

Smartcard with different historical bytes depending on interface

余生颓废 提交于 2021-01-28 18:56:24
问题 I would like to know if there is a way of changing the historical bytes automatically as you power your smartcard, in order to have different response if on contact or contactless. In Javacard you can use setATRHistBytes , and also call it depending on the access interface. But the changes would be reflected on next power up of the card. I want to set them intermediately. TA 回答1: Actually the contact-less interface has no attribute named ATR. Because ATR is for contact interface only. The