I recently met one issue about "Mutual authentication", I'm working with the card de NXP (JCOP3).
On the JCShell, the "Mutual authentication" runs smoothly. I have learned how to use by reference of Specfication GP 2.2.1.
So I want to implement it in our microprocessor de ST, but when the command "init-update" is sent, I got the error is always 0x6700 (Wrong length).


I met the host challenge as 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, so the init-update command as below:
" uint8_t init_update_cmd[14] = {0x80, 0x50, 0x00, 0x00, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00 (I have tried le = 0x00 or le= 0x1C )}; "
PS: Before I was wondering if there is a bug in my driver, but for the others commands like (select card manage ,select applet and etc.) they run withou any abnormal situation. So is there some thing that I igonred ?
I hope that you have some clues which may help me.


Guang LI