mode_211
enable_trace
enable_timer
establish_context
card_connect
select -AID A000000151000000
get_key_information_templates
open_sc -security 3 -keyind 0 -keyver 0 -mac_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -enc_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -kek_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12
# put key ver 4
delete_key -keyver 4 -noStop
put_sc_key -keyver 0 -newkeyver 4 -mac_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -enc_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -kek_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12
# test key ver 4
card_disconnect
card_connect
open_sc -security 3 -keyind 0 -keyver 4 -mac_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -enc_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -kek_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12
get_status -element 20
# delete key ver 4
card_disconnect
card_connect
open_sc -security 3 -keyind 0 -keyver 0 -mac_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -enc_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12 -kek_key DE2A3629CBC24E8D8869E82C8B4C0D874D88166B6F8A1C12
delete_key -keyver 4 -noStop
release_context
