hi Sebastein,

here is code section for towitoko
http://towitoko.sourcearchive.com/documentation/2.0.7-8/protocol__t0_8c-source.html
 

It handles the APDU directly in the driver.
Any comment :)

B.R.
Wayne

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Sébastien Lorquet
Sent: Thursday, July 08, 2010 14:34
To: MUSCLE
Subject: Re: [Muscle] T=0 Case 2 response length

One more thing:

>
> It is so weird to let the dependency exist from bottom to top.

In fact, I do not think that's not a dependency. That just means that T=0 is 
unable to transfer a case 4 command at once.
The fact that the direction of the transfer MUST be known prior to the transfer 
also implies that you must know the response length.

If the response length is not what the card expected, there is no way to make 
the host and the card agree on the action to be taken. So instead of relying on 
timeouts, the designers preferred to be sure of the transfer length. So if the 
transfer length is not OK for BOTH the host and the card, the latter one sends 
61 or 6C as SW2, so that the host can agree with the card, or abort the 
transfer.

Sebastien
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to