Posted by xavier
(220.127.116.11) on July 01, 2003 at 05:43:45:
We want to use the T=0 protocol and we want the following command to be of type "Incoming Data Only", which is considered as a Case 3.
Thanks to a step to step execution, we can see that SW1SW2 is indeed set to &H9000. But when the command is finished, just after the "End Command" statement, SW1SW2 is set to &H6108. I guess it means that the card accepts the command and indicates that 8 bytes of outgoing data are available.
If a "Disable Le" statement is added to the Command Definition and Declaration, then the card answers with a SW1SW2 set to &H6C08. The card seems to understand the APDU as one of a case 2 (Outgoing Data Only) with Le not accepted and La=8 indicated.
If "Le=0" is added to the APDU then the card answers with &H6108.
In the value &H9000 is changed with &H6900, for example, the card answers with &H6900.
Please, can you tell me where is my mistake?
Thanks for your attention.
Dim CHVc$ as string*8
'Get the Key in the file
'comparison of the 2 keys