Re: MUSCLE fyi: towitoko bug

1999-08-06 Thread Michael Renzmann

Hi Carlos.

 Have you tried to split one T=1 APDU into more than
 one fragment and send them secuencially to the
 reader?

That´s not the real problem. You are right, that
huge amounts of data can be split by using the block
chaining mechanism of the T=1-protocol. The problem
will be, if the card has an IFSC of 255 bytes and the
programmer wants to use the whole range of the card´s
receive buffer. By sending 255 bytes of information
at once (255 bytes of real information, protocol data
not included!), he has to send more than this 255 bytes
to the reader because of the protocol overhead. Try to
tell this to the reader by using one byte for "length
of data to send" :-)

Actually this problem can be solved by not using the
whole receive buffer range of the card, as someone
wrote here. But in order to avoid problems in special
cases this problem has to be shown to programmers, I
think. That´s the reason why I wrote this "bug report"
within the mailinglist, as there should be some
programers using Towitoko-readers :-)

 I think that if it is said that you can communicate
 transparently with the card by issuing (0x6f, nn,
 0x05, qs, t1, t2, ...) commands, it should not matter
 how many fragments you use to send one APDU. 

As I wrote above: you are right, as long as you only
look at the maximum length possible for one APDU. As
soon as you add the protocol overhead (which has to
be done... :) there will be more than 255 bytes to
send via the drive.

Bye, Mike

***
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***



Re: MUSCLE fyi: towitoko bug

1999-08-06 Thread Matthias Bruestle

Mahlzeit


Michael Renzmann wrote:
 By sending 255 bytes of information at once (255 bytes of real
 information, protocol data not included!), he has to send more than this
 255 bytes to the reader because of the protocol overhead. Try to tell
 this to the reader by using one byte for "length of data to send" :-)

This is no problem.

1) You don't have to send the whole data with one Towitoko command
   to the card. You can send the first halve of an I-Block with
   one command and the second halve with a second command.

2) The maximum data size a Towitoko reader can send with one command
   is AFAIK 15 (or 16) Bytes.

E.g.:

|He|ad|er|Da|ta|by|te|s.|..|..|..|..|..|..|..|..|..|..|..|RC|
|-|-|
 Sent with first towitoko command.   Sent with second.


Mahlzeit

endergone Zwiebeltuete

***
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***