Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APDU VERIFY command with Towitoko reader

843851Oct 18 2002 — edited Jan 21 2003
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2003
Added on Oct 18 2002
2 comments
352 views