Henryk Plötz wrote:
Moin,

Am Sun, 24 Sep 2006 18:33:35 +0200 schrieb Andreas Jellinghaus:

we might want to check here if the first two bytes
are the number of the record and the (length -2).
that is a tag/length that isn't needed as far as I know
and needs to be stripped so our internal code works.
but other implementation will maybe not have such an
tl-header before the real content.

They do have, by definition. That's what the TLV in
SC_FILE_EF_LINEAR_VARIABLE_TLV stands for. The code is not complete
(complete handling would also handle all variants of {CYCLIC,LINEAR_{FIXED,VARIABLE}}{,_TLV}) but at least it's correct.

that's not quite correct. According to iso 7816-4 the first byte
in a TLV record is the tag byte followed by 1-3 length bytes
(if the first length byte is 0xff two additional bytes are used
to specify the length of the value part as a big-endian uint_16).

Cheers,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to