javacard -APDU command output
Moderator: UNKNwYSHSA
-
- Posts: 30
- Joined: Wed Aug 19, 2015 2:55 am
- Points :213
- Contact:
javacard -APDU command output
I used JCIDE to debug my applet.
Then I sent the following commands consecutively.
>/select 112233445501
>90 00
/send 00a4000002f801
>6F FF
/send 01a4000002f801 ?? 6A 95 expected
>68 81
/send 08a4000002f801
>6A 95
Q: The third and the fourth commands should output 6A 95. But the third output 68 81.
What was going on ? Why 6A 95 didn't occur?
Thanks.
Then I sent the following commands consecutively.
>/select 112233445501
>90 00
/send 00a4000002f801
>6F FF
/send 01a4000002f801 ?? 6A 95 expected
>68 81
/send 08a4000002f801
>6A 95
Q: The third and the fourth commands should output 6A 95. But the third output 68 81.
What was going on ? Why 6A 95 didn't occur?
Thanks.
You do not have the required permissions to view the files attached to this post. Please login first.
Last edited by choimillen on Mon Sep 07, 2015 11:48 pm, edited 1 time in total.
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :138
- Contact:
Re: javacard -APDU command output
The two least significant bits of the CLA byte encodes the logical channels numbers. If you set CLA to 07, it won't find any open channel except the basic one(0). So the platform handles the error before the applet receives your APDU command.
That is your applet doesn't receive the command at all.
That is your applet doesn't receive the command at all.
Who is online
Users browsing this forum: No registered users and 45 guests