Hi,

I have questions on the {ERASE,WRITE,UPDATE} BINARY commands for which I do 
not find the answer in the spec (ISO-7816-4).

Here they are:
* What's the exact difference between WRITE BINARY & UPDATE BINARY?
  My understanding of the spec is that WRITE BINARY can extend a file's size,
  while UPDATE BINARY can only update data elements that are already within
  the file (i.e. in the range [0 .. file_size-1]).
  Is my understanding correct or did I misunderstand the specscompletely?

* Is it to be considered an error if UPDATE BINARY
   a) uses an idx >= existing_file_size ?
   b) wants to update 0 data elements (i.e. count = 0) ?
   c) idx + count >= existing_file_size?

* Similar for ERASE BINARY
   a) Can it set data elements to logical erased state beyond the file size?
        i.e. idx + count >= existing_file_size
   b) Is it an error to erase 0 data alements
       i.e. count = 0
   c) If idx + count >= file_size, does the file get zapped (=shortened)
       to idx data elements?
  
Thanks in advance
Peter

-- 
Peter Marschall
pe...@adpm.de
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to