Yes, this is what I mean: they *must not* be encoded, so that the
shortest possible representation results that still allows to
differentiate between positive and negative numbers. This is what
my examples show.

Andreas

P.S. A couple of years ago I did an analysis of Microsoft's
      Kerberos protocol. They encoded certain 32-bit integer variables
      constantly as 0x02 0x04 0x.. 0x.. 0x.. 0x.., irrespectively of
      the actual value.

Alessandro Premoli wrote:
> Andreas Steffen ha scritto:
>> Additionally prepended 0x00 octets for positive and 0xFF octets for
>> negative numbers, respectively are discarded.
> 
> If with "discarded" you mean that they will not appear in the encoded 
> form, yes. If you mean the decoder should ignore them, then no.
> 
> -- 
> Alessandro Premoli

======================================================================
Andreas Steffen                         [EMAIL PROTECTED]
strongSwan - the Linux VPN Solution!                www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to