APDU VERIFY command with Towitoko reader
843851Oct 18 2002 — edited Jan 21 2003Hi guys,
In OpenCard Framework I cannot verify the PIN on a SLE4442 card from the Towitoko reader. I use a CardContact CTAPI4OCF
driver that implements a CT-API Cttwkw32.dll Towitoko driver.
I use the following Verify (APDU) command:
int[] Command = {0x00, 0x20, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff};
INS = 0x20 is a Verify command code
0xff,0xff,0xff is a PIN number
This command, modified to "byte" type array is used in the CT-API function CT_DATA:
CT_Data((char) 0, (byte)0, (byte)2, 8, Command, (char) lr, rsp);
I consistently get a response rsp from card: 6D 00. This suggests that the command is wrong.
Before I call the Verify command I do the following:
1. Reset CT (card terminal)
2. Request ICC (card)
3. Reset ICC
4. Get Status
5. Select MF
6. Verify PIN
All APDU commands with, with the exclusion of Verify, are successful. With the same setup
I am also able to to read data, Read Binary command, from the card.
I admit I do not see what I do wrong. Could you help me?
Thank you,
Marek