Changes:
[pmaier@sysmocom.de] fixup
[pmaier@sysmocom.de] fixup
------------------------------------------ [...truncated 14.53 KiB...] DEBUG:pySim.global_platform.scp:mac_3des(00016b4524abee7c40a62c37fa6304f8) -> ba6961667737c5bc DEBUG:pySim.global_platform.scp:mac_3des(40a62c37fa6304f800016b4524abee7c) -> f32ea3838bc148f3 DEBUG:pySim.global_platform.scp:host_cryptogram(ba6961667737c5bc), card_cryptogram(f32ea3838bc148f3) ok test_mutual_auth_success (test_globalplatform.SCP02_Auth_Test.test_mutual_auth_success) ... DEBUG:pySim.global_platform.scp:Scp02SessionKeys(CTR=1, ICV=None, ENC=1ba074b31f72a6c44fe8f5d9afe4da2f, D-ENC=511db767812597722109c867f9d7257a, MAC-C=29a69328e60494982632039ddd47a2f1, MAC-R=fdf8a06c38fa7a54123c80ab9087bf25) DEBUG:pySim.global_platform.scp:host_challenge(40a62c37fa6304f8), card_challenge(6b4524abee7c) DEBUG:pySim.global_platform.scp:mac_3des(00016b4524abee7c40a62c37fa6304f8) -> ba6961667737c5bc DEBUG:pySim.global_platform.scp:mac_3des(40a62c37fa6304f800016b4524abee7c) -> f32ea3838bc148f3 DEBUG:pySim.global_platform.scp:host_cryptogram(ba6961667737c5bc), card_cryptogram(f32ea3838bc148f3) DEBUG:pySim.global_platform.scp:mac_1des(8482010010ba6961667737c5bc,icv=0000000000000000) -> ebece14c7d6a4376 ok test_mac_command (test_globalplatform.SCP02_Test.test_mac_command) ... DEBUG:pySim.global_platform.scp:Scp02SessionKeys(CTR=1, ICV=None, ENC=1ba074b31f72a6c44fe8f5d9afe4da2f, D-ENC=511db767812597722109c867f9d7257a, MAC-C=29a69328e60494982632039ddd47a2f1, MAC-R=fdf8a06c38fa7a54123c80ab9087bf25) DEBUG:pySim.global_platform.scp:host_challenge(40a62c37fa6304f8), card_challenge(6b4524abee7c) DEBUG:pySim.global_platform.scp:mac_3des(00016b4524abee7c40a62c37fa6304f8) -> ba6961667737c5bc DEBUG:pySim.global_platform.scp:mac_3des(40a62c37fa6304f800016b4524abee7c) -> f32ea3838bc148f3 DEBUG:pySim.global_platform.scp:host_cryptogram(ba6961667737c5bc), card_cryptogram(f32ea3838bc148f3) DEBUG:pySim.global_platform.scp:mac_1des(8482010010ba6961667737c5bc,icv=0000000000000000) -> ebece14c7d6a4376 DEBUG:pySim.global_platform.scp:wrap_cmd_apdu(80f28002024f00) ERROR test_kcv (test_globalplatform.SCP03_KCV_Test.test_kcv) ... ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES128_03.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES128_03.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=8e1552d0513c60f330760cd2c47c1dd3, base_key=000102030405060708090a0b0c0d0e0f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=8e1552d0513c60f330760cd2c47c1dd3, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=8e1552d0513c60f330760cd2c47c1dd3, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7e0a6e90> DEBUG:pySim.global_platform.scp:host_challenge(8e1552d0513c60f3), card_challenge(30760cd2c47c1dd3) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=8e1552d0513c60f330760cd2c47c1dd3, base_key=59b76ddff91dba0515a9644de3a48863, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=8e1552d0513c60f330760cd2c47c1dd3, base_key=59b76ddff91dba0515a9644de3a48863, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(fd4721a14d9b0700), card_cryptogram(95065fe5ead8a9d7) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES128_03.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_03.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=c70915b2ee6711aa326658fc9cd93ae9 ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_03.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES128_11.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES128_11.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=b13e5f938fc108c43eb51047495b249f, base_key=000102030405060708090a0b0c0d0e0f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=b13e5f938fc108c43eb51047495b249f, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=b13e5f938fc108c43eb51047495b249f, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7df1a690> DEBUG:pySim.global_platform.scp:host_challenge(b13e5f938fc108c4), card_challenge(3eb51047495b249f) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=b13e5f938fc108c43eb51047495b249f, base_key=8b2635556e987a6b84f43d9ffc197d3f, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=b13e5f938fc108c43eb51047495b249f, base_key=8b2635556e987a6b84f43d9ffc197d3f, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(7d5f5826a993ebc8), card_cryptogram(66c484c1d2ef1948) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES128_11.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_11.test_04_wrap_cmd_apdu_get_eid) ... ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_11.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x97\x1b\xe6\x89\x92\xdb\xbd\xfa')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES128_33.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES128_33.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=fdf38259a1e0de443b1aca81e821f219, base_key=000102030405060708090a0b0c0d0e0f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=fdf38259a1e0de443b1aca81e821f219, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=fdf38259a1e0de443b1aca81e821f219, base_key=101112131415161718191a1b1c1d1e1f, l=128) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7dffaa90> DEBUG:pySim.global_platform.scp:host_challenge(fdf38259a1e0de44), card_challenge(3b1aca81e821f219) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=fdf38259a1e0de443b1aca81e821f219, base_key=0415f56cbb9e488bb171b2b66081f004, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=fdf38259a1e0de443b1aca81e821f219, base_key=0415f56cbb9e488bb171b2b66081f004, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(8c36f96bcc00724a), card_cryptogram(081cdc01c26b372d) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES128_33.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_33.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=2130ff8bbb48c9be46f5b4fd6945003d ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES128_33.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xf3\xba+\x10\x13\xaab$\xf5\xe1\xc18\xd7\x18\x05\xc5i\xe5C\x9bGWb`\xb7_\xc0!\xb2P\x97\xcb.h\xf8\xa0\x14Iu\xb9')) DEBUG:pySim.global_platform.scp:_get_icv(data=80000000000000000000000000000001, is_resp=True) -> icv=a266877da5962d0da9c186b20337fb68 DEBUG:pySim.global_platform.scp:decrypted: bf3e125a10898821199000000000000000000000058000000000000000000000 DEBUG:pySim.global_platform.scp:response_data: bf3e125a1089882119900000000000000000000005 ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES192_03.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES192_03.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=69c65da8202bf19fb570a67be3844671, base_key=000102030405060708090a0b0c0d0e0f0001020304050607, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=69c65da8202bf19fb570a67be3844671, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=69c65da8202bf19fb570a67be3844671, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7dffac50> DEBUG:pySim.global_platform.scp:host_challenge(69c65da8202bf19f), card_challenge(b570a67be3844671) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=69c65da8202bf19fb570a67be3844671, base_key=787c55691bf5f22f567f8905b9b74242dc6c92a94f050232, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=69c65da8202bf19fb570a67be3844671, base_key=787c55691bf5f22f567f8905b9b74242dc6c92a94f050232, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(65df4f1a356a8879), card_cryptogram(7729d6dd3d2ec5b1) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES192_03.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_03.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=295afe76882e5ab0ee690befcf2ef778 ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_03.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES192_11.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES192_11.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=7396430b768b085b8cfc23522ffdbf1e, base_key=000102030405060708090a0b0c0d0e0f0001020304050607, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=7396430b768b085b8cfc23522ffdbf1e, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=7396430b768b085b8cfc23522ffdbf1e, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7df03190> DEBUG:pySim.global_platform.scp:host_challenge(7396430b768b085b), card_challenge(8cfc23522ffdbf1e) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=7396430b768b085b8cfc23522ffdbf1e, base_key=15e4303d3157d8d1dd283b7321434ae83fc80ac9b12e3daf, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=7396430b768b085b8cfc23522ffdbf1e, base_key=15e4303d3157d8d1dd283b7321434ae83fc80ac9b12e3daf, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(2145ed30b146f5db), card_cryptogram(5df5542cac8fd866) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES192_11.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_11.test_04_wrap_cmd_apdu_get_eid) ... ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_11.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x16/\xbd3\xe0I@\xa9')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES192_33.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES192_33.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=9b3f2eef0e8c9374f6bb305a15bae1a6, base_key=000102030405060708090a0b0c0d0e0f0001020304050607, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=9b3f2eef0e8c9374f6bb305a15bae1a6, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=9b3f2eef0e8c9374f6bb305a15bae1a6, base_key=101112131415161718191a1b1c1d1e1f1011121314151617, l=192) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7e0c4b50> DEBUG:pySim.global_platform.scp:host_challenge(9b3f2eef0e8c9374), card_challenge(f6bb305a15bae1a6) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=9b3f2eef0e8c9374f6bb305a15bae1a6, base_key=436682192ffc13c9399ca38c1adac01498ec77fe1fb560a9, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=9b3f2eef0e8c9374f6bb305a15bae1a6, base_key=436682192ffc13c9399ca38c1adac01498ec77fe1fb560a9, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(9100bc22d58b45b8), card_cryptogram(8f79fb08212fbed7) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES192_33.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_33.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=8dfc8944578cf519b96fa2f3d0540929 ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES192_33.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xc0Qv\xc1\xb6\xf7*\xaeP\xc3,\xbe\xe6;\x0e\x95\x99\x89(\xfdM\xfb+\xe9\xf2\x7f\xfd\xe8\xc8GoY\t\xb4\x80\\xc4\x03\x95\x99')) DEBUG:pySim.global_platform.scp:_get_icv(data=80000000000000000000000000000001, is_resp=True) -> icv=dffa9a2aa40de538b5919545a699f2f6 DEBUG:pySim.global_platform.scp:decrypted: bf3e125a10898821199000000000000000000000058000000000000000000000 DEBUG:pySim.global_platform.scp:response_data: bf3e125a1089882119900000000000000000000005 ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES256_03.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES256_03.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=c6066990fc426e1d8682cd81bbd8919f, base_key=000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=c6066990fc426e1d8682cd81bbd8919f, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=c6066990fc426e1d8682cd81bbd8919f, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7df03d90> DEBUG:pySim.global_platform.scp:host_challenge(c6066990fc426e1d), card_challenge(8682cd81bbd8919f) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=c6066990fc426e1d8682cd81bbd8919f, base_key=309b7e14a014a190dd01e21756a8010d01568b058971f803f7d77be42c6cb45b, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=c6066990fc426e1d8682cd81bbd8919f, base_key=309b7e14a014a190dd01e21756a8010d01568b058971f803f7d77be42c6cb45b, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(77c493b632edadaf), card_cryptogram(2de3f2664581f118) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES256_03.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_03.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=f23382fb921338b0d02abf13bcddb773 ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_03.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES256_11.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES256_11.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=11666d57866c6f5453ea8847efa7674e, base_key=000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=11666d57866c6f5453ea8847efa7674e, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=11666d57866c6f5453ea8847efa7674e, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7df01e10> DEBUG:pySim.global_platform.scp:host_challenge(11666d57866c6f54), card_challenge(53ea8847efa7674e) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=11666d57866c6f5453ea8847efa7674e, base_key=80546fe2b8e72587efa3f1be7df30b0fb0146b795f8f131d8b32ac5200f5dbec, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=11666d57866c6f5453ea8847efa7674e, base_key=80546fe2b8e72587efa3f1be7df30b0fb0146b795f8f131d8b32ac5200f5dbec, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(2f2ad190eff2fafc), card_cryptogram(41498a4d66cf0dee) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES256_11.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_11.test_04_wrap_cmd_apdu_get_eid) ... ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_11.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xbf>\x12Z\x10\x89\x88!\x19\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x80\x12\xdd\x7f\x01\xf1\xc4\xc1')) ok test_01_initialize_update (test_globalplatform.SCP03_Test_AES256_33.test_01_initialize_update) ... ok test_02_parse_init_upd_resp (test_globalplatform.SCP03_Test_AES256_33.test_02_parse_init_upd_resp) ... DEBUG:pySim.global_platform.scp:scp03_kdf(constant=04, context=97b2055fe58599fda8439a22cedf045f, base_key=000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=06, context=97b2055fe58599fda8439a22cedf045f, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=07, context=97b2055fe58599fda8439a22cedf045f, base_key=101112131415161718191a1b1c1d1e1f101112131415161718191a1b1c1d1e1f, l=256) DEBUG:pySim.global_platform.scp:<pySim.global_platform.scp.Scp03SessionKeys object at 0x7f4e7f97e410> DEBUG:pySim.global_platform.scp:host_challenge(97b2055fe58599fd), card_challenge(a8439a22cedf045f) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=00, context=97b2055fe58599fda8439a22cedf045f, base_key=0607c530eb8e7b6e781a70b349370db8728c4b6ed29a24e5461864c142f98fec, l=64) DEBUG:pySim.global_platform.scp:scp03_kdf(constant=01, context=97b2055fe58599fda8439a22cedf045f, base_key=0607c530eb8e7b6e781a70b349370db8728c4b6ed29a24e5461864c142f98fec, l=64) DEBUG:pySim.global_platform.scp:host_cryptogram(508a0fd959d2e547), card_cryptogram(a9f1903b2834f26e) ok test_03_gen_ext_auth_apdu (test_globalplatform.SCP03_Test_AES256_33.test_03_gen_ext_auth_apdu) ... ok test_04_wrap_cmd_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_33.test_04_wrap_cmd_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:_get_icv(data=00000000000000000000000000000001, is_resp=False) -> icv=bcaf73883e649908dcad6ebcaf5a3c41 ok test_05_unwrap_rsp_apdu_get_eid (test_globalplatform.SCP03_Test_AES256_33.test_05_unwrap_rsp_apdu_get_eid) ... DEBUG:pySim.global_platform.scp:unwrap_rsp_apdu(sw=bytearray(b'\x90\x00'), rsp_apdu=bytearray(b'\xea\x90\xdb\xfad\x8ag\xc5\xebj\xbcW\xf8S\x0b\x97\xd0\xcdVG\xc5\xe8s \x16\xb5R\x03\xb0x\xdd*\xce\x7f\x8b\xc5\xd1\xc1\xcd\x99')) DEBUG:pySim.global_platform.scp:_get_icv(data=80000000000000000000000000000001, is_resp=True) -> icv=3dc50f8cecdf2361db2de3d475e8c3e7 DEBUG:pySim.global_platform.scp:decrypted: bf3e125a10898821199000000000000000000000058000000000000000000000 DEBUG:pySim.global_platform.scp:response_data: bf3e125a1089882119900000000000000000000005 ok test_decode_resp (test_ota.SmsOtaTestCase.test_decode_resp) ... ok test_encode_cmd (test_ota.SmsOtaTestCase.test_encode_cmd) ... ok test_cmd_3des_ciphered (test_ota.Test_SMS_3DES.test_cmd_3des_ciphered) ... ok test_cmd_3des_none (test_ota.Test_SMS_3DES.test_cmd_3des_none) ... ok test_cmd_3des_signed (test_ota.Test_SMS_3DES.test_cmd_3des_signed) ... ok test_resp_3des_ciphered (test_ota.Test_SMS_3DES.test_resp_3des_ciphered) ... ok test_resp_3des_none (test_ota.Test_SMS_3DES.test_resp_3des_none) ... ok test_resp_3des_signed (test_ota.Test_SMS_3DES.test_resp_3des_signed) ... ok test_resp_3des_signed_err (test_ota.Test_SMS_3DES.test_resp_3des_signed_err) Expect an OtaCheckError exception if the computed CC != received CC ... ok test_cmd_aes128_ciphered (test_ota.Test_SMS_AES128.test_cmd_aes128_ciphered) ... ok test_resp_aes128_ciphered (test_ota.Test_SMS_AES128.test_resp_aes128_ciphered) ... ok test_from_bytes (test_sms.Test_AddressField.test_from_bytes) ... ok test_from_bytes_odd (test_sms.Test_AddressField.test_from_bytes_odd) ... ok test_to_bytes (test_sms.Test_AddressField.test_to_bytes) ... ok test_to_bytes_odd (test_sms.Test_AddressField.test_to_bytes_odd) ... ok test_from_bytes (test_sms.Test_DELIVER.test_from_bytes) ... ok test_single_ie (test_sms.Test_SMS_UDH.test_single_ie) ... ok test_single_ie_tail (test_sms.Test_SMS_UDH.test_single_ie_tail) ... ok test_single_ie_value (test_sms.Test_SMS_UDH.test_single_ie_value) ... ok test_to_bytes (test_sms.Test_SMS_UDH.test_to_bytes) ... ok test_two_ie_data_tail (test_sms.Test_SMS_UDH.test_two_ie_data_tail) ... ok test_from_bytes (test_sms.Test_SUBMIT.test_from_bytes) ... ok test_de_encode_tlv (test_tlvs.TLV_IE_Test.test_de_encode_tlv) Test the decoder and encoder for a TLV_IE. Performs first a decoder ... ok test_decode_tlv (test_tlvs.TLV_IE_Test.test_decode_tlv) Test the decoder for a TLV_IE. Requires the given TLV_IE subclass ... ok test_encode_tlv (test_tlvs.TLV_IE_Test.test_encode_tlv) Test the encoder for a TLV_IE. Requires the given TLV_IE subclass ... ok testDecAct_allSet (test_utils.DecTestCase.testDecAct_allSet) ... ok testDecAct_noneSet (test_utils.DecTestCase.testDecAct_noneSet) ... ok testDecAct_onlyCdma20001xRTT (test_utils.DecTestCase.testDecAct_onlyCdma20001xRTT) ... ok testDecAct_onlyCdma2000HRPD (test_utils.DecTestCase.testDecAct_onlyCdma2000HRPD) ... ok testDecAct_onlyEUtran (test_utils.DecTestCase.testDecAct_onlyEUtran) ... ok testDecAct_onlyGsm (test_utils.DecTestCase.testDecAct_onlyGsm) ... ok testDecAct_onlyGsmCompact (test_utils.DecTestCase.testDecAct_onlyGsmCompact) ... ok testDecAct_onlyNgRan (test_utils.DecTestCase.testDecAct_onlyNgRan) ... ok testDecAct_onlyUtran (test_utils.DecTestCase.testDecAct_onlyUtran) ... ok testDecMCCfromPLMN (test_utils.DecTestCase.testDecMCCfromPLMN) ... ok testDecMCCfromPLMN_str (test_utils.DecTestCase.testDecMCCfromPLMN_str) ... ok testDecMCCfromPLMN_unused (test_utils.DecTestCase.testDecMCCfromPLMN_unused) ... ok testDecMCCfromPLMN_unused_str (test_utils.DecTestCase.testDecMCCfromPLMN_unused_str) ... ok testDecMNCfromPLMN_threeDigitMNC (test_utils.DecTestCase.testDecMNCfromPLMN_threeDigitMNC) ... ok testDecMNCfromPLMN_threeDigitMNC_str (test_utils.DecTestCase.testDecMNCfromPLMN_threeDigitMNC_str) ... ok testDecMNCfromPLMN_twoDigitMNC (test_utils.DecTestCase.testDecMNCfromPLMN_twoDigitMNC) ... ok testDecMNCfromPLMN_twoDigitMNC_str (test_utils.DecTestCase.testDecMNCfromPLMN_twoDigitMNC_str) ... ok testDecMNCfromPLMN_unused (test_utils.DecTestCase.testDecMNCfromPLMN_unused) ... ok testDecMNCfromPLMN_unused_str (test_utils.DecTestCase.testDecMNCfromPLMN_unused_str) ... ok testDec_msisdn (test_utils.DecTestCase.testDec_msisdn) ... ok testDecodeSuciCalcInfo (test_utils.DecTestCase.testDecodeSuciCalcInfo) ... ok testDecxPlmn_w_act (test_utils.DecTestCase.testDecxPlmn_w_act) ... ok testEnc_msisdn (test_utils.DecTestCase.testEnc_msisdn) ... ok testEncodeSuciCalcInfo (test_utils.DecTestCase.testEncodeSuciCalcInfo) ... ok testFormatxPlmn_w_act (test_utils.DecTestCase.testFormatxPlmn_w_act) ... ok testSplitHexStringToListOf5ByteEntries (test_utils.DecTestCase.testSplitHexStringToListOf5ByteEntries) ... ok test_enc_plmn (test_utils.DecTestCase.test_enc_plmn) ... ok testSeqOfChoices (test_utils.DoTestCase.testSeqOfChoices) A sequence of two choices with each a variety of DO/TLVs ... ok test_encode (test_utils.TestLuhn.test_encode) ... ok test_sanitize_iccid (test_utils.TestLuhn.test_sanitize_iccid) ... ok test_verify (test_utils.TestLuhn.test_verify) ... ok
====================================================================== ERROR: test_mac_command (test_globalplatform.SCP02_Test.test_mac_command) ---------------------------------------------------------------------- Traceback (most recent call last): File "https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/unittests/test_globalplatform.py", line 64, in test_mac_command wrapped = self.scp02.wrap_cmd_apdu(h2b('80f28002024f00')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim/global_platform/scp.py", line 165, in wrap_cmd_apdu return self._wrap_cmd_apdu(apdu, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim/global_platform/scp.py", line 299, in _wrap_cmd_apdu mlc = lc + 8 ^^ UnboundLocalError: cannot access local variable 'lc' where it is not associated with a value
---------------------------------------------------------------------- Ran 140 tests in 1.488s
FAILED (errors=1) Build step 'Execute shell' marked build as failure $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 1632764 killed; [ssh-agent] Stopped. Archiving artifacts