mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
The tests that check the establishment of a secure channel currently only test security level 3. Also the get_data command after it only tests data reception from the card. Let's extend the test coverage and test the SCP establishment for security level 1 as well. Let's also add a get_status command to make sure sending data to the card also works (without exceptions). Related: OS#6367 Change-Id: Idff40b414a249e532df1bdce2a8deb9b0cb9718f
15 lines
389 B
Plaintext
15 lines
389 B
Plaintext
set debug true
|
|
set echo true
|
|
|
|
select ADF.ISD-R
|
|
|
|
establish_scp03 --key-dek $KEY_DEK --key-enc $KEY_ENC --key-mac $KEY_MAC --key-ver 50 --security-level 3
|
|
get_data issuer_identification_number
|
|
get_status isd
|
|
release_scp
|
|
|
|
establish_scp03 --key-dek $KEY_DEK --key-enc $KEY_ENC --key-mac $KEY_MAC --key-ver 50 --security-level 3
|
|
get_data issuer_identification_number
|
|
get_status isd
|
|
release_scp
|