Hi @Kan_Li ,
Can we go through ImportExternalObject together, please?
First of all, APDU guide states:
4.7.2 ImportExternalObject
Note: The APDU “ImportExternalObject” must not be used without first contacting NXP to avoid potential problems. If you have used or plan to use the APDU “ImportExternalObject,” please make sure you contact your NXP representative.
What are the problems? and Who at NXP can help me with this?
I am working with simw-top/demos/se05x/se05x_ImportExternalObjectPrepare/se05x_ImportExternalObjectPrepare.c
I fixed some obvious mistakes and get it to the final API Se05x_API_ImportExternalObject() which fails:
# ./xin -file skey.der -keyid 0x7FFF0202
smCom :INFO :Found Reader: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader] (55022428201805) 00 00
smCom :INFO :Connecting to reader: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader] (55022428201805) 00 00
sss :INFO :Newer version of Applet Found
sss :INFO :Compiled for 0x70200. Got newer 0x7022E
sss :WARN :Communication channel is Plain.
sss :WARN :!!!Not recommended for production use.!!!
App :INFO :master shared Secret !!!!
App :INFO :masterSk (Len=16)
24 90 AD 4B A8 A5 3B 45 EC 4B FE E3 FC C2 0D 39
App :INFO :sessionEncKey (Len=16)
B2 EC 1A 38 AE 8D B7 06 7F F8 D5 DA A9 C6 3C 0F
App :INFO :sessionMacKey (Len=16)
6C 7C 0A 91 EA 71 EB 8A FC 34 39 9F C9 C2 8F 6A
App :INFO :sessionRmacKey (Len=16)
CB A5 74 1A EE 56 93 77 F6 2A AB E4 A5 91 EA BB
App :INFO :Initial MCV (Len=16)
93 50 68 FA 15 6E 28 E6 C2 72 50 9C 31 35 8F 95
App :INFO :gTxBuffer (Len=29)
80 01 03 00 18 41 04 00 00 00 ED 43 10 48 45 4C
4C 4F 48 45 4C 4C 4F 48 45 4C 4C 4F 31
sss :WARN :nxEnsure:'ret == SM_OK' failed. At Line:7837 Function:sss_se05x_TXn
App :ERROR:se05x_ImportExternalObjectPrepare Example Failed !!!...
I am happy to share the code if you would help.