Page 1 of 1

Questions about a script file for java card

Posted: Wed Feb 17, 2016 5:14 am
by wousim
I download GPShell tool and I also found the following script file from web.

Code: Select all

mode_211
enable_trace
establish_context
card_connect
 
select -AID a00000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4d4e4f
send_apdu -sc 1 -APDU 80F0800708A000000003000000
send_apdu -sc 1 -APDU 80F0800F08A000000003000000
card_disconnect
release_context


Q1: What is this script for ? to change ISD state from OP_READY to SECURED?

Q2: Is the operation of the above script reversible by another script?

Q3: What capability of my card lost in this new ISD's status?

Re: Questions about a script file for java card

Posted: Fri Feb 19, 2016 5:11 am
by lostsiwonlw
Q1: What is this script for ? to change ISD state from OP_READY to SECURED?
A1: Yes! Your are right. The script is used to change ISD state from OP_READY to SECURED.


Q2: Is the operation of the above script reversible by another script?
A2: No. The change of state from SECURED to OP_READY is irreversible.

Q3: What capability of my card lost in this new ISD's status?
A3: The SECURED state is used to indicate that the ISD contains all necessary keys and security elements for full functionality.
No Secure communication is possible with the Security Level as "AUTHENTICATED" during the card state "SECURED". It means at least C-MAC is required to communicate securely with the card.