globalplatform

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

Eclipse generated .cap file cannot be installed on JavaCard

核能气质少年 提交于 2020-01-14 06:20:17
问题 I am trying to install applets on my JavaCard (Gemalto IDCore3010). I succeeded with the GlobalPlatform helloworld.cap file, but when it was me generating the .cap file in Eclipse (4.4.2) using the very same sourcecode (with different package name though, but that shouldn't matter) I got error messages both with GlobalPlatformShell and GlobalPlatformProShell. I was using the same command and script as in case of the original file. I also tried other .cap files that had been working on

Java card weird response to long AID and Short AID applets

独自空忆成欢 提交于 2020-01-04 17:45:14
问题 I create a package that contains 22 equal applets.(The applets are equal in program and different in AID.) When I set the package AID and applet's AIDs as below, everything is OK. (I can install it and I can see it in the response of gp -list command) Package AID = 0102030405 App1 AID = 010203040501 App2 AID = 010203040502 App3 AID = 010203040503 App4 AID = 010203040504 App5 AID = 010203040505 App6 AID = 010203040506 App7 AID = 010203040507 App8 AID = 010203040508 App9 AID = 010203040509

Authentication failed to java card Manager after changing Global Platform default key in gpshell

。_饼干妹妹 提交于 2020-01-01 16:58:11
问题 I want to change globalplatform default key for loading applet and secure messaging to card manager. I could change my gemalto default GP card key using bellow commands successfuly: mode_211 enable_trace establish_context card_connect -readerNumber 1 select -AID A000000018434D00 open_sc -security 1 -keyind 0 -keyver 1 -key 47454d5850524553534f53414d504c45 -keyDerivation visa2 // Open secure channel put_sc_key -keyver 0 -newkeyver 1 -key 505152535455565758595a5b5c5d5e5f // Put secure channel

Secure Box in JCOP card

痞子三分冷 提交于 2019-12-24 02:21:48
问题 JCOP V2.4.2 Revision 3 Security Target: Page 11-12 A Secure Box concept is implemented within JCOP 2.4.2 R3. The Secure Box is a construct which allows to run non certified third party native code and ensures that this code cannot harm, influence or manipulate the JCOP 2.4.2 R3 operating system or any of the applets executed by the operating system.The separation of the native code in the Secure Box from other code and/or data residing on the hardware is ensured by the Hardware MMU which has

setATRHistBytes() method always returns false

大兔子大兔子 提交于 2019-12-22 17:52:07
问题 I wrote the following program to change the Historical Bytes in the ATR of my smartcard to, for example, 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 . I use GPSystem.setATRHistBytes() to set the historical bytes. Note that 0x00 0x00 ... 0x00 is not the actual value that I'm using for the historical bytes but I censored it. The actual value is an array of 15 bytes that is equal to the historical bytes of another exisitng card. package org.globalplatform; import javacard.framework.*;